Skip to content

Tests that don't use @RunWith(BarometerTester.class) do not always run in v0.0.7 #14

@tdaffin

Description

@tdaffin

There is a problem with the fix for the FMLSecurityException:

If you also have tests that do not use BarometerTester then they don't always run, because the last test that does run with BarometerTester causes the test process to exit.

I've pushed an example to my repo: 1.12...tdaffin:junit-bug

In the example the test com.jjtparadox.barometer.otherpackage.test.NotBarometerTest#testThatAllJUnitTestsRun does not get run unless I set systemProperty "barometer.exitWhenCompleted", false in build.gradle, but that brings back the security exception.

FYI: This is also a problem for CyclopsMC/IntegratedDynamics#562 as IntegratedDynamics also has a bunch of jUnit only tests.

If it helps I can submit this example test as a PR.

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