flank icon indicating copy to clipboard operation
flank copied to clipboard

Test classes with `@Ignore` are still run.

Open inktomi opened this issue 3 years ago • 1 comments

Let's say you have this test class:

@Ignore
class TestClass {

    @Test
    fun aTestMethod() { .. }
}

I would expect that aTestMethod() is not executed in flank runs, yet I see it being executed. It seems that the test methods, and not the class, need to be annotated.

Expected behavior An @Ignore annotation on the test method or class should result in the methods not being ran. If at the class level, then no test in that class should execute.

inktomi avatar Nov 09 '21 21:11 inktomi

@inktomi I'd love to accept a pull request for this feature! Currently we @Ignore at the method level. I agree @Ignore at the class level would make sense as well.

bootstraponline avatar Nov 11 '21 20:11 bootstraponline