Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrmanc opened this issue Jul 23, 2018 · 0 comments
Open

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

mrmanc opened this issue Jul 23, 2018 · 0 comments

Comments

@mrmanc
Copy link

mrmanc commented Jul 23, 2018

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant