Skip to content

Running more than one test class at a time breaks tests #67

Description

@mrmanc

I just added this library to a project and found that while the tests passed in the IDE, the tests failed when running via Maven.

Removing the configuration from my pom.xml which runs tests in parallel causes the tests to pass. Removing the rule usage from one of the two tests I added it to also causes the tests to pass.

Is this likely to be some collision of static code?

Maven configuration:

…
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <version>2.20.1</version>
                <configuration>
                    <parallel>classes</parallel>
                    <useUnlimitedThreads>true</useUnlimitedThreads>
                    <reportsDirectory>../target/surefire-reports</reportsDirectory>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions