Use JUnit5 Tags for Spek
问题 I am trying to distinguish my tests into Unit- and Integration tests. My idea was to use the new JUnit5 Annotation @Tag("unit") which works nicely for my JUnit tests, but I cannot get it to work with Spek. What I currently have is my class: data class MyObject(val value: Int) My tests: @Tag("unit") object MyObjectTest { @Test fun checkEquality() { val o1 = MyObject(1) assertEquals(o1, o1) } } With my build.gradle having: task utest(type: Test) { outputs.upToDateWhen { false } useJUnitPlatform