maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Philippe Faes (JIRA)" <>
Subject [jira] Commented: (CONTINUUM-968) Tests for continuum-release fail randomly
Date Tue, 24 Oct 2006 07:20:39 GMT
    [ ] 
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:
>             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:
For more information on JIRA, see:


View raw message