Run ignored Kotlin Tests

Answered

As I struggled with resolution of dependencies by putting main methods in test classes I came to the following;

@Ignore
class IgnoreTest {

    @Test
    fun test() {
        assert(true)
    }
}

In IntelliJ2024.1 it shows up as runnable test:

Which leads to the following result:

Is there a way to explicitly start ignored tests? In my scenario these tests should be excluded from CI/CD but there should be a smarter way to run them manually than commenting @Ignore

 

0

Please sign in to leave a comment.