Is it possible to use @IgnoreIf to not build tests and completely disable them? #1836
Unanswered
achurch0607
asked this question in
Q&A
Replies: 1 comment 5 replies
-
How do you execute them? With Idea, Gradle and Maven there is a way to point out just a single test to run and while most likely the other tests will be compiled in the first execution, in the subsequent run they should be treated as "not changed" and not compiled again (I'm not sure about Maven without Maven daemon). Compilation is rather handled at the higher level than Spock. |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have around 8000 tests in a suite that I am finally trying to update to the newest version of spock and geb. Moving from spock-core:1.3-groovy-2.5 to spock-core:2.3-groovy-4.0.
Using @IgnoreIf({functionToDetermineTrue()}) - I used to be able to run these tests and only tests that were not ignored would build and execute. I am now unable to just run a single tests because @IgnoreIf builds all of the tests not just the single test marked to run. Now all of the tests in my suite run and execute but are counted as ignored. After researching it seems to be a change from junit4 to junit5 that might be causing this. Any suggestions on how to disable tests from building so I can only run a single test that is marked to run from my master spreadsheet.
Beta Was this translation helpful? Give feedback.
All reactions