Terasology / ModuleTestingEnvironment

3 stars 15 forks source link

feat: use logback to filter log output #37

Closed keturn closed 3 years ago

keturn commented 3 years ago

This applies a logback configuration file (originally copied from engine-test) to all MTE tests.

It probably makes a mess of things if your test runner already had some other logback configuration, but I don't think we have any such testing environments.

Depends on https://github.com/MovingBlocks/Terasology/pull/4477 to change MTE's dependencies.

keturn commented 3 years ago

I'm not entirely happy with this, https://github.com/Terasology/ModuleTestingEnvironment/blob/9213fe05a3349f2683c484bfee332ba8f3d7abd2/src/main/java/org/terasology/moduletestingenvironment/MTEExtension.java#L145-L151

but given that MTE tests have been routinely generating hundreds of kilobytes of output per test, I think this is an improvement over the current state of things.