Thank you very much. I needed it because I wanted to integrate tests results with other tools and I prefered to change maven folder rather than changing the folder of all the other tools.
Baptiste MATHUS-4 wrote: > > After reading the documentation here: > http://maven.apache.org/plugins/maven-surefire-report-plugin/examples/report-custom-location.html > > It seems like outputDirectory customization is only designed to generate > the > html file somewhere else. Generating xml/txt files in a custom directory > seems not supported. > > May I ask why are you trying to do this? > > If it really annoys you, feel you to file a feature request in the > maven-surefire-report-plugin tracker. > > Cheers. > > 2008/12/16 JJ__ <jesfa...@yahoo.es> > >> >> Hello, >> >> I am trying to compile and test a program and it works, but the report of >> the tests are stored in target\surefire-reports the default directory. I >> have changed it with the following pom.xml changing outputDirectory of >> both >> plugins "maven-surefire-report-plugin" and "maven-site-plugin" but it >> still >> stores the xml files of the results in the default directory. Does anyone >> knows what am I doing wrong? >> >> thanks in advanced. >> >> <project> >> <modelVersion>4.0.0</modelVersion> >> <groupId>org.MyTests.Test</groupId> >> <artifactId>Program</artifactId> >> <packaging>jar</packaging> >> <name>MyProgram</name> >> <version>0.0.1</version> >> <description>My program project</description> >> <build> >> >> >> <sourceDirectory>src\net\sourceforge\cruisecontrol\sampleproject\connectfour</sourceDirectory> >> >> >> <testSourceDirectory>test\net\sourceforge\cruisecontrol\sampleproject\connectfour</testSourceDirectory> >> <defaultGoal>install</defaultGoal> >> <directory>${basedir}/target</directory> >> <finalName>${artifactId}-${version}</finalName> >> <plugins> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-jar-plugin</artifactId> >> <configuration> >> <archive> >> <manifest> >> >> >> <mainClass>net.sourceforge.cruisecontrol.sampleproject.connectfour.PlayingStand</mainClass> >> <addClasspath>false</addClasspath> >> </manifest> >> </archive> >> </configuration> >> </plugin> >> </plugins> >> </build> >> <reporting> >> <plugins> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-surefire-report-plugin</artifactId> >> <version>2.4.2</version> >> <configuration> >> >> <outputDirectory>${basedir}/target/test-report</outputDirectory> >> </configuration> >> </plugin> >> <plugin> >> <groupId>org.apache.maven.plugins</groupId> >> <artifactId>maven-site-plugin</artifactId> >> <version>2.0-beta-5</version> >> <configuration> >> >> <outputDirectory>${basedir}/target/test-report</outputDirectory> >> </configuration> >> </plugin> >> </plugins> >> </reporting> >> >> <dependencies> >> <dependency> >> <groupId>junit</groupId> >> <artifactId>junit</artifactId> >> <version>3.8.1</version> >> <scope>test</scope> >> </dependency> >> </dependencies> >> </project> >> -- >> View this message in context: >> http://www.nabble.com/Resport-of-Junit-tests-in-other-folder-tp21040830p21040830.html >> Sent from the Maven - Users mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@maven.apache.org >> For additional commands, e-mail: users-h...@maven.apache.org >> >> > > > -- > Baptiste <Batmat> MATHUS - http://batmat.net > Sauvez un arbre, > Mangez un castor ! > > -- View this message in context: http://www.nabble.com/Resport-of-Junit-tests-in-other-folder-tp21040830p21042220.html Sent from the Maven - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@maven.apache.org For additional commands, e-mail: users-h...@maven.apache.org