Closed keturn closed 2 years ago
I agree. Composed annotation looks better.
I've been keeping this in mind as I've been adding parameters in MTE's new home. I don't have the composed annotation set up yet, but I think we'll go that way.
Apparently GitHub's "transfer issue" function doesn't let me move things between @Terasology and @MovingBlocks, so I guess I'll close this here.
Setting up a test class currently looks like this:
Maybe we should make it look more like this:
unitTest
andintegrationTest
suites, so we might as well have something that applies it anywhere we're using MTE.ExtendWith
” can't express that sort of required parameter, but if we have a composed annotation for setting up the test, we can put the parameters in the same place. UseWorldGenerator has a useful default, so we don't need to make it required, but we can help discoverability by putting it in the same place. Neither of these annotations is at all useful on classes that aren't MTEExtension-enabled test classes, so we don't lose anything by taking them out of the interface.