THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
No Format |
---|
suite.addTestSuite( MavenItmngXXXXDescriptionOfProblemTest.class ); |
Now run the suite:
No Format |
---|
brianf@sonoma /cygdrive/e/svn/Maven/maven-it-tests/core-integration-test
$ mvn test
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Integration Tests
[INFO] task-segment: [test]
[INFO] ----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] Compiling 124 source files to e:\svn\Maven\maven-it-tests\core-integration-tests\target\test-classes
[INFO] [surefire:test]
[INFO] Surefire report directory: e:\svn\Maven\maven-it-tests\core-integration-tests\target\surefire-reports
Running integration tests for Maven 2.0.7
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.integrationtests.IntegrationTestSuite
Running integration tests for Maven 2.0.7
0000(testit0000).. Ok
....
got get some coffee, it's gonna be a while
....
MavenItmngXXXXDescriptionOfProblemTest...Ok <-- our test...yeah!
Tests run: 115, Failures: 22, Errors: 3, Skipped: 0, Time elapsed: 534.241 sec <<< FAILURE!
Results :
Failed tests:
testit0002(org.apache.maven.integrationtests.MavenIT0002Test)
Tests in error:
testit0086(org.apache.maven.integrationtests.MavenIT0086Test)
testit0087(org.apache.maven.integrationtests.MavenIT0087Test)
testit0104(org.apache.maven.integrationtests.MavenIT0104Test)
Tests run: 115, Failures: 22, Errors: 3, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] There are test failures.
[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 9 minutes 12 seconds
[INFO] Finished at: Wed Aug 08 23:39:48 EDT 2007
[INFO] Final Memory: 4M/12M
[INFO] ------------------------------------------------------------------------
|
Don't panic if some tests fail. That's probably normal. Only Panic if your test doesn't fail and it was supposed to (especially if you didn't write it).
...