So we have some tests that only serve a purpose of running them locally. For example, we have a test that uses internal classes to download a file from the cloud.
This test should not be run in our CI, so we put it on @Ignore
. There are two downsides with this approach though:
- The test is shown as "ignored" in the CI
- You have to remove the
@Ignore
before every run
So I wondered if there is any way to let CI ignore some tests completely, so I can only run them locally?
Just to clarify: This is not about conditionally ignoring tests - it is about hiding tests completely.