v1.10.0 — JUnit 5 Support
What's new
JUnit 5 Support
Selenium Boot now supports JUnit 5 with full feature parity to the TestNG integration.
Three ways to use it:
// Option A — extend BaseJUnit5Test (mirrors BaseTest)
class LoginTest extends BaseJUnit5Test {
@Test
void login() {
open();
$("input#username").type("admin");
assertThat(By.id("dashboard")).isVisible();
}
}
// Option B — @EnableSeleniumBoot on your own base class
@EnableSeleniumBoot
class LoginTest {
@Test
void login(WebDriver driver) { ... }
}
// Option C — @ExtendWith + parameter injection
@ExtendWith(SeleniumBootExtension.class)
class LoginTest {
@Test
void login(WebDriver driver) { ... }
}Setup:
```xml
io.github.seleniumboot
selenium-boot
1.10.0
org.junit.jupiter
junit-jupiter
5.10.2
test
org.junit.platform
junit-platform-launcher
1.10.2
test
```
Parallel execution via junit-platform.properties:
```properties
junit.jupiter.execution.parallel.enabled=true
junit.jupiter.execution.parallel.mode.default=concurrent
junit.jupiter.execution.parallel.config.fixed.parallelism=4
```
Docs site updated
junit5.mdrewritten from "Planned" placeholder to full live documentation- JUnit 5 and Cucumber feature cards added to the homepage