Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Test classes with @Ignore are still run. #2180

Open
inktomi opened this issue Nov 9, 2021 · 1 comment
Open

Test classes with @Ignore are still run. #2180

inktomi opened this issue Nov 9, 2021 · 1 comment

Comments

@inktomi
Copy link

inktomi commented Nov 9, 2021

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 inktomi added the Bug label Nov 9, 2021
@bootstraponline
Copy link
Contributor

@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.

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants