I have been dreading when this day would come but I am hoping some of the smart people here can help me out. The way we run our smoke tests (and other subsets of tests) is by using the @Category tag from Junit4 and running that with a gradle task. Since spock 2 no longer uses Junit4, @Category no longer works.
From my reading and research, @Category was replaced with @Tag in Junit5. Marcin previously provided me this link which seemed simple enough but unfortunately it is not working.
I have 2 MVPs on my github I put together to demonstrate how it is working in Geb4/Junit4 and how I am trying to get it to work in Geb5/Junit5. If someone is able to take a look and help me out I would really appreciate it. If it doesn't look like this route is going to work, I'd love some ideas on tagging tests for smoke tests that is similar to this solution.
https://github.com/jacattau/smoketestGeb4 - this one you should be able to checkout and run. There are 2 test classes with 2 tests each. Running the "chromeSmokeTest" gradle task should run 1 test in each class with the @Category(SmokeTest) annotation.
https://github.com/jacattau/smoketestGeb5 - this one is updated to Geb5 and Groovy 3.0.8. This has the same 2 test classes and same 4 tests (2 each). I updated the tests ti yse the @Tag annotation and changed the gradle task to useJUnitPlatform and when I run it, it says "Test events were not received". If I add @Test to the method as well and it actually launches the browser but fails and runs the test with a weird name like "$spock_feature_3_0()".
I'd love some help if anyone has any ideas.