Bonjour, je voudrais utiliser la task junit dans ant, lorsque je lance le fichier build.xml il me dit qu'il ne trouve pas la classe qui définit la tache junit.
J'utilise eclipse 3.1.1 et ant 1.6.5 par défaut dans eclipse.
Voila si vous voulez plus d'infos concernant le classpath etc.... demander moi.
Merci pour vos réponses..
voici mon code source du fichier build.xml
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 <project name="Test" default="main" basedir="."> <property name="src" location="."/> <property name="build" location="build"/> <property name="reports" location="reports"/> <property name="reports.html.dir" location="${reports}/html"/> <!-- initialisation --> <target name="init" description="créee les répertoires utlisés par la suite"> <mkdir dir="${reports}"/> <mkdir dir="${reports.html.dir}"/> <mkdir dir="${build}"/> </target> <target name="compile" depends="init"> <javac srcdir="${src}" destdir="${build}" includes="tests/tools/*.java"/> </target> <target name="clean" description="prépare le grand ménage..."> <delete dir="${reports}"/> <delete dir="${build}"/> </target> <target name="test" depends="compile"> <junit printsummary="yes" fork="yes" haltonfailure="yes"> <formatter type="xml"/> <classpath> <pathelement location="${build}"/> <pathelement path="${java.class.path}"/> </classpath> <test name="tests.tools.TesterTest" todir="${reports}"/> </junit> <junitreport todir="${reports.html.dir}"> <fileset dir="${reports}"> <include name="TEST-*.xml"/> </fileset> <report format="noframes" todir="${reports.html.dir}"/> </junitreport> </target> <!-- target principale (par défaut) --> <target name="main" depends="test"> </target> </project>
Partager