Skip to content

fix(junit5): fire ExecutionHook.onSuiteStart on the JUnit Platform - #156

Merged
shossain786 merged 1 commit into
masterfrom
fix/junit-suite-start-hooks
Oct 16, 2026
Merged

shossain786 merged 1 commit into
masterfrom
fix/junit-suite-start-hooks

Conversation

@shossain786

Copy link
Copy Markdown
Contributor

SeleniumBootLauncherListener only implemented testPlanExecutionFinished, so ExecutionHook.onSuiteStart() never fired on JUnit 5 (it did on TestNG via SuiteExecutionListener).

  • Add testPlanExecutionStarted: idempotent FrameworkBootstrap.initialize() then HookRegistry.onSuiteStart(), once per plan. A bootstrap failure is left for SeleniumBootExtension to surface.
  • Test fails before (expected 1, found 0), passes after. Full suite: 710 tests, 0 failures.
  • Found while reviewing [Bug]: warning in running github actions #155; independent of the Cucumber deprecation work.

🤖 Generated with Claude Code

SeleniumBootLauncherListener only handled plan end, so suite-start hooks
never ran for JUnit 5 / Cucumber-on-JUnit runs. Bootstrap (idempotent) and
fire HookRegistry.onSuiteStart() in testPlanExecutionStarted.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@shossain786
shossain786 merged commit 35a00db into master Oct 16, 2026
2 checks passed
@shossain786
shossain786 deleted the fix/junit-suite-start-hooks branch October 16, 2026 03:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant