Skip to content

fix: execute example module tests via surefire + junit-jupiter-engine - #297

Merged
AndreasIgel merged 1 commit into
java-helpers:mainfrom
igel-devin-ai:devin/example-junit-fix
Sep 22, 2026
Merged

AndreasIgel merged 1 commit into
java-helpers:mainfrom
igel-devin-ai:devin/example-junit-fix

Conversation

@igel-devin-ai

Copy link
Copy Markdown
Collaborator

Summary

The example module declared test sources but never executed them: mvn test ran 0 tests because the module only depended on junit-jupiter (the API artifact) and had no Surefire plugin configured.

  • Add junit-jupiter-engine test dependency so JUnit Platform has a discoverable engine
  • Configure maven-surefire-plugin (${plugin.maven.surefire.version} = 3.6.0) for the module

After this change mvn -pl example test executes all 6 test classes (28+ assertions, 0 failures).

Split out of #296 per review feedback.

Co-Authored-By: Andreas Igel <andreas.igel@computacenter.com>
@sonarqubecloud

Copy link
Copy Markdown

@codecov

codecov Bot commented Sep 22, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@AndreasIgel
AndreasIgel merged commit 5cc3c14 into java-helpers:main Sep 22, 2026
6 of 7 checks passed
devin-ai-integration Bot added a commit to igel-devin-ai/simple-builders-devin-fork that referenced this pull request Sep 25, 2026
- branch predated java-helpers#297 and its pom revert dropped the merged surefire /
  junit-jupiter-engine setup; pom restored to upstream so the example
  tests keep running
- javadoc: state explicitly that @SimpleBuilderFor is not @inherited

Co-Authored-By: Andreas Igel <andreas.igel@computacenter.com>
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.

2 participants