Bonjour,

J'ai deux petits problèmes en ce qui concerne les tests avec Maven en utilisant FlexUnit:

1. J'aimerais que Maven n'arrête pas le build lorsque un test ne passe pas. J'ai essayé de mettre <testFailureIgnore>true</testFailureIgnore> un peu partout dans le pom.xml mais sans succès.

2. Je souhaite utiliser surefire-report pour faire le reporting des tests passés mais le problème est que les rapports de tests se trouve dans un dossier target/test-reports/*-TestReport mais surefire va les chercher dans target/surefire-reports/Test-*.xml. Lorsque je change le nom du dossiers et des fichiers à la main, le rapport se construit bien. J'aimerais donc savoir s'il est possible de dire à surefire où aller chercher les rapports en xml ou dire à Maven où mettre les rapports.

voici mon pom.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
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
 
<project xmlns="http://maven.apache.org/POM/4.0.0"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
	<modelVersion>4.0.0</modelVersion>
	<groupId>com</groupId>
	<artifactId>flex-maven</artifactId>
	<packaging>swf</packaging>
	<version>1.0-SNAPSHOT</version>
	<name>flex-maven Maven Flex</name>
 
	<parent>
		<groupId>info.rvin.mojo</groupId>
		<artifactId>flex-super-pom</artifactId>
		<version>1.0-beta2</version>
	</parent>
 
	<build>
		<sourceDirectory>src/main/flex</sourceDirectory>
		<testSourceDirectory>src/test</testSourceDirectory>
 
		<plugins>
			<plugin>
				<groupId>info.rvin.mojo</groupId>
				<artifactId>flex-compiler-mojo</artifactId>
				<version>1.0-beta4</version>
				<configuration>
					<useNetwork>true</useNetwork>
					<main>Main.mxml</main>
				</configuration>
			</plugin>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<version>2.4.2</version>
				<configuration>
					<testFailureIgnore>true</testFailureIgnore>
				</configuration>
			</plugin>
		</plugins>
	</build>
 
	<dependencies>
		<dependency>
			<groupId>flexunit</groupId>
			<artifactId>flexunit</artifactId>
			<version>0.85</version>
			<type>swc</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>flexunit.junit</groupId>
			<artifactId>flexunit-optional</artifactId>
			<version>0.85</version>
			<type>swc</type>
			<scope>test</scope>
		</dependency>
		<dependency>
			<groupId>velocity</groupId>
			<artifactId>velocity</artifactId>
			<version>1.5</version>
		</dependency>
	</dependencies>
 
 
	<reporting>
		<plugins>
			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-report-plugin</artifactId>
				<reportSets>
					<reportSet>
						<reports>
							<report>report</report>
						</reports>
					</reportSet>
				</reportSets>
			</plugin>
		</plugins>
	</reporting>
 
</project>
merci d'avance