[ http://jira.codehaus.org/browse/CONTINUUM-968?page=comments#action_78305 
] 
            
Philippe Faes commented on CONTINUUM-968:
-----------------------------------------

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.


> Tests for continuum-release fail randomly
> -----------------------------------------
>
>                 Key: CONTINUUM-968
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-968
>             Project: Continuum
>          Issue Type: Test
>    Affects Versions: 1.1
>         Environment: tests fail for some environments and pass for others. 
> For some they fail at random
>            Reporter: Philippe Faes
>            Priority: Minor
>         Attachments: continuum-release.diff
>
>
> The test for continuum-release fails randomly. This is because the two test 
> methods are executed in a random order (this is intended JUnit behavior), and 
> the tests alter files. 
> Solution is to restore files between tests (method setUp) and to force the 
> order of the two tests (create one test method that calls the two other 
> methods one by one).
> Patch is attached. Please verify and commit.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to