I'm getting a consistent fail with the following output from surefire:
------------------------------------------------------------------------------
Test set: org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.932 sec <<< FAILURE!
testReleases(org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest) Time elapsed: 3.869 sec <<< ERROR!
java.io.FileNotFoundException: C:\continuum-1.1-src\continuum-release\target\test-classes\work-dir\pom.xml (The system cannot find the path specified)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at org.codehaus.plexus.util.FileUtils.fileRead(FileUtils.java:273)
at org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.releaseSimpleProject(ReleaseTaskExecutorTest.java:98)
at org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.testReleases(ReleaseTaskExecutorTest.java:115)
and the following output on the console....
[INFO] Surefire report directory: C:\continuum-1.1-src\continuum-release\target\surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest
[INFO] Executing: svn --non-interactive checkout file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk work-dir
[INFO] Working directory: C:\continuum-1.1-src\continuum-release\target\test-classes
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 3.948 sec <<< FAILURE!
Results :
Tests run: 1, Failures: 0, Errors: 1, 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: 1 minute 16 seconds
[INFO] Finished at: Wed Nov 01 09:46:54 EST 2006
[INFO] Final Memory: 15M/28M
[INFO] ------------------------------------------------------------------------
When I try the svn command manually, I get....
C:\continuum-1.1-src>svn --non-interactive checkout file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk work-dir
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file://localhost/C:/continuum-1.1-src/continuum-release/target/scm-test/trunk'
C:\continuum-1.1-src>
But I can use svnadmin to verify the repository...
C:\continuum-1.1-src>svnadmin verify C:/continuum-1.1-src/continuum-release/target/scm-test
- Verified revision 0.
- Verified revision 1.
- Verified revision 2.
C:\continuum-1.1-src>
Hopefully this will help....
Why can't the state of the files just be returned to normal after each test case completes and then work within the intended junit behavior?