Resport of Junit tests in other folder

2008-12-16 Thread JJ__

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
  modelVersion4.0.0/modelVersion
  groupIdorg.MyTests.Test/groupId
  artifactIdProgram/artifactId
  packagingjar/packaging
  nameMyProgram/name
  version0.0.1/version
  descriptionMy program project/description
  build

sourceDirectorysrc\net\sourceforge\cruisecontrol\sampleproject\connectfour/sourceDirectory

testSourceDirectorytest\net\sourceforge\cruisecontrol\sampleproject\connectfour/testSourceDirectory
defaultGoalinstall/defaultGoal
directory${basedir}/target/directory
finalName${artifactId}-${version}/finalName
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  archive
manifest
 
mainClassnet.sourceforge.cruisecontrol.sampleproject.connectfour.PlayingStand/mainClass
  addClasspathfalse/addClasspath
/manifest
  /archive
/configuration
  /plugin
  /plugins
  /build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-report-plugin/artifactId
version2.4.2/version
configuration
   outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
version2.0-beta-5/version
configuration
   outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
/plugins
  /reporting

  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/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



Re: Resport of Junit tests in other folder

2008-12-16 Thread Baptiste MATHUS
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
  modelVersion4.0.0/modelVersion
  groupIdorg.MyTests.Test/groupId
  artifactIdProgram/artifactId
  packagingjar/packaging
  nameMyProgram/name
  version0.0.1/version
  descriptionMy program project/description
  build


 sourceDirectorysrc\net\sourceforge\cruisecontrol\sampleproject\connectfour/sourceDirectory


 testSourceDirectorytest\net\sourceforge\cruisecontrol\sampleproject\connectfour/testSourceDirectory
defaultGoalinstall/defaultGoal
directory${basedir}/target/directory
finalName${artifactId}-${version}/finalName
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  archive
manifest


 mainClassnet.sourceforge.cruisecontrol.sampleproject.connectfour.PlayingStand/mainClass
  addClasspathfalse/addClasspath
/manifest
  /archive
/configuration
  /plugin
  /plugins
  /build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-report-plugin/artifactId
version2.4.2/version
configuration
   outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
version2.0-beta-5/version
configuration
   outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
/plugins
  /reporting

  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/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 !


Re: Resport of Junit tests in other folder

2008-12-16 Thread JJ__

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
  modelVersion4.0.0/modelVersion
  groupIdorg.MyTests.Test/groupId
  artifactIdProgram/artifactId
  packagingjar/packaging
  nameMyProgram/name
  version0.0.1/version
  descriptionMy program project/description
  build


 sourceDirectorysrc\net\sourceforge\cruisecontrol\sampleproject\connectfour/sourceDirectory


 testSourceDirectorytest\net\sourceforge\cruisecontrol\sampleproject\connectfour/testSourceDirectory
defaultGoalinstall/defaultGoal
directory${basedir}/target/directory
finalName${artifactId}-${version}/finalName
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-jar-plugin/artifactId
configuration
  archive
manifest


 mainClassnet.sourceforge.cruisecontrol.sampleproject.connectfour.PlayingStand/mainClass
  addClasspathfalse/addClasspath
/manifest
  /archive
/configuration
  /plugin
  /plugins
  /build
reporting
plugins
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-surefire-report-plugin/artifactId
version2.4.2/version
configuration
  
 outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
  plugin
groupIdorg.apache.maven.plugins/groupId
artifactIdmaven-site-plugin/artifactId
version2.0-beta-5/version
configuration
  
 outputDirectory${basedir}/target/test-report/outputDirectory
/configuration
  /plugin
/plugins
  /reporting

  dependencies
dependency
  groupIdjunit/groupId
  artifactIdjunit/artifactId
  version3.8.1/version
  scopetest/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