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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to