Terasology / ModuleTestingEnvironment

3 stars 15 forks source link

feat: Deprecate old API #18

Closed kaen closed 4 years ago

kaen commented 4 years ago

With the new JUnit5 interface merged I'd like to start deprecating the old inheritance-based interface.

I've verified with a couple of MTE-using modules that the old API still works, it's just marked deprecated in the IDE.

The README and documentation was updated to reflect this deprecation. Additionally, and IsolatedMTEExtension was added in case anyone needs the old behavior of creating a new engine for every test case.

Finally, a default timeout of 30s was added to the runFoo helpers so that MTE can't accidentally DoS the build server (or your IDE if you run all tests while going to lunch). New runFoo signature were added to allow users to specify their own timeout if desired.

Unfortunately this PR also includes a documentation rebuild, so the diff is much larger than the actual changes involved.