Bonjour
c'est ma première post dans ce forum, j’espère bien trouver une solution à mon prob ici.
bon, j'ai installé phing, phpunit avec une installation pear, et d'autres composants comme phpmd, phpdoc, php_codesniffer... afin de mettre en place une plateforme d'intégration continue.
j'ai créé une projet de test sous le dossier contenant build.xml
donc ce build.xml fait des test unitaire avec phpunit et génère un fichier tests-report.xml, qui va être reçu par phpunitreport qui va le transformer selon le fichier XSL
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100 <project name="php" default="help"> <!-- ================================================================== --> <!-- Properties --> <!-- ================================================================== --> <!-- *** Project General Properties *********************************** --> <property name="home" value="${project.basedir}"/> <property name="src.dir" value="library"/> <property name="style.dir" value="/usr/share/php5/PEAR/data/phing/etc"/> <property name="test.dir" value="tests"/> <property name="report.dir" value="build"/> <property name="doc.dir" value="docs"/> <property name="context.dir" value="contexts"/> <property name="config.dir" value="config"/> <property name="convention" value="PEAR"/> <!-- *** Project Custom Properties ************************************ --> <property file="${home}/${config.dir}/build.properties" override="true"/> <property file="${home}/${config.dir}/${conf}.properties" override="true"/> <!-- *** Project Common Properties ************************************ --> <property name="package.name" value="${application.name}"/> <!-- ================================================================== --> <!-- Targets --> <!-- ================================================================== --> <!-- *** $ phing help ************************************************* --> <target name = "help" depends = "" description = "Information about this build file"> <echo>${package.name} Phing Build commands</echo> </target> <!-- *** $ phing inits ************************************************ --> <target name = "inits" depends = "" description = "Initializes the application environment"> <!-- /library --> <mkdir dir="${home}/${src.dir}"/> <!-- /tests --> <mkdir dir="${home}/${test.dir}"/> <mkdir dir="${home}/${test.dir}/phpunit"/> <mkdir dir="${home}/${test.dir}/fitnesse"/> <mkdir dir="${home}/${test.dir}/selenium"/> <mkdir dir="${home}/${test.dir}/jsunit"/> <!-- /reports --> <mkdir dir="${home}/${report.dir}"/> <mkdir dir="${home}/${report.dir}/phpunit"/> <mkdir dir="${home}/${report.dir}/coverage"/> <mkdir dir="${home}/${report.dir}/codesniffer"/> <!-- /docs --> <mkdir dir="${home}/${doc.dir}"/> <mkdir dir="${home}/${doc.dir}/api"/> <!-- /contexts --> <mkdir dir="${home}/${context.dir}"/> </target> <!-- *** $ phing tests-unit ******************************************* --> <target name = "tests-unit" depends = "inits" description = "Executes unit tests (PHPUnit)"> <!--<php expression="require_once '${home}/${context.dir}/phpunit.php'"/>--> <phpunit haltonfailure="false" printsummary="true"> <batchtest classpath="${home}/${src.dir}"> <fileset dir="${home}"> <include name="${test.dir}/phpunit/**/*Test.php" /> </fileset> </batchtest> <formatter type = "xml" todir = "${home}/${report.dir}/phpunit" outfile = "tests-report.xml" /> </phpunit> <phpunitreport format = "frames" todir = "${home}/${report.dir}/phpunit" styledir = "${style.dir}" infile = "${home}/${report.dir}/phpunit/tests-report.xml" /> </target> </project>
le problème lorsque fait le build avec phing voilà ce qu'il me retourne
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2 BUILD FAILED Error reading project file [wrapped: PHPUnitReportTask requires the XSL extension]
j'ai vérifié la présence du fichier phpunit-frames.xsl et je trouve qu'il est dans le bon emplacement sous /usr/share/php5/PEAR/data/phing/etc
merci d'avance
Partager