[ANN] Geb 5.0 has been released

73 views
Skip to first unread message

Marcin Erdmann

unread,
Aug 13, 2021, 5:15:52 PM8/13/21
to geb-...@googlegroups.com
Hi,

Version 5.0 of Geb has been released and is available from Maven Central.

This is a version which is compatible with Groovy 3 and Spock 2.

The full list of changes is as usual available in the Book of Geb at https://gebish.org/manual/5.0/#5-0.

Thanks,
Marcin

jc

unread,
Aug 13, 2021, 7:23:25 PM8/13/21
to Geb User Mailing List
Hi Marcin,
This will no longer use Junit4, correct?

Alexander Kriegisch

unread,
Aug 13, 2021, 8:29:30 PM8/13/21
to geb-...@googlegroups.com
Spock 2 ist based on JUnit 5 platform [1], but for now still can be used
with JUnit 4 support [2] while migrating to JUnit 5 platform.

Because Spock now is a JUnit engine (like Jupiter) and no longer a JUnit
4 runner (Sputnik was removed), you need a workaround if your legacy
tests rely on @RunWith support such as PowerMock runner. There is a way
to keep it working for now via org.junit.platform:junit-platform-runner,
as described in [3].

See also [4] and [5].

[1] https://spockframework.org/spock/docs/2.0/all_in_one.html#_highlights
[2] https://spockframework.org/spock/docs/2.0/all_in_one.html#_junit_4_support
[3] https://spockframework.org/spock/docs/2.0/all_in_one.html#_sputnik_runner_removed_an_alternative
[4] https://search.maven.org/search?q=a:spock-junit4
[5] https://spockframework.org/spock/docs/2.0/all_in_one.html#junit-4
--
Alexander Kriegisch
https://scrum-master.de
Reply all
Reply to author
Forward
0 new messages