Terasology / ModuleTestingEnvironment

3 stars 15 forks source link

reducing the number of annotations #76

Closed keturn closed 2 years ago

keturn commented 2 years ago

Setting up a test class currently looks like this:

@Tag("MteTest")
@ExtendWith(MTEExtension.class)
@Dependencies("Pathfinding")
@UseWorldGenerator("Pathfinding:pathfinder")
public class PathfinderTest { /*…*/ }

Maybe we should make it look more like this:

@ModuleEnvironmentTest(modules="Pathfinding", worldGenerator="Pathfinding:pathfinder")
public class PathfinderTest { /*…*/ }
DarkWeird commented 2 years ago

I agree. Composed annotation looks better.

keturn commented 2 years ago

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.