|
[
Permalink
| « Hide
]
Jesse McConnell added a comment - 23/Oct/06 05:23 PM
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?
It can't because testReleaseSimpleProject() makes changes to the repository that are needed by testReleaseSimpleProjectWithNextVersion. The former can be executed alone, but the latter needs the former in order to pass. testReleaseSimple expects to find 1.0-SNAPSHOT in the repo, whil testReleaseSimpleWithNextVersion expects 1.1-SNAPSHOT.
Bottom line: both methods comprise ONE test, not two. patch applied, thank you much!
I'm still seeing a (repeatable) test failure in continuum-release. (Windows XP and Cygwin.)
console output: Results : [INFO] ------------------------------------------------------------------------ Surefire output: $ cat target/surefire-reports/*.txt at org.apache.maven.shared.release.phase.ScmCommitPhase.execute(ScmCommitPhase.java:102) at junit.framework.Assert.fail(Assert.java:47) Reopening because issue still remains.
The error may be in maven-release-manager but there is no source attached when the snapshot was deployed.
I've downloaded the trunk of maven-release-manager but this fails for different reasons. I'm getting a consistent fail with the following output from surefire:
------------------------------------------------------------------------------ and the following output on the console.... [INFO] Surefire report directory: C:\continuum-1.1-src\continuum-release\target\surefire-reports ------------------------------------------------------- Results : [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 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
C:\continuum-1.1-src> Hopefully this will help.... Oh - and just in case this is significant......
C:\continuum-1.1-src>svn --version Copyright (C) 2000-2005 CollabNet. The following repository access (RA) modules are available:
C:\continuum-1.1-src> I'm working off HEAD (revision 470234) with a local snapshot build of maven-release-manager.
Windows XP (no cygwin) Trying mvn clean install from project root fails at continuum-release with the reason that: junit.framework.AssertionFailedError: Test released version at junit.framework.Assert.fail(Assert.java:47) at junit.framework.Assert.assertTrue(Assert.java:20) at org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.releaseSimpleProject(ReleaseTaskExecutorTest.java:111) at org.apache.maven.continuum.release.executors.ReleaseTaskExecutorTest.testReleases(ReleaseTaskExecutorTest.java:115) If go into the continuum-release module and run mvn clean it will sometimes work and sometimes fail with the same error. Because this error is intermittent it feels like a timing issue with the Microsoft clock not being accurate enough. If I remember rightly it is only even milliseconds or something. This might be causing the issue with the tests. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||