Skip to content

fix: Fix junit5 test suites not running#1213

Merged
markdomeng merged 1 commit into
dsldevkit:masterfrom
markdomeng:fixTests
Nov 6, 2025
Merged

fix: Fix junit5 test suites not running#1213
markdomeng merged 1 commit into
dsldevkit:masterfrom
markdomeng:fixTests

Conversation

@markdomeng
Copy link
Copy Markdown
Collaborator

they are not executed because the master suite AllTest is still in junit4 suite. the fix includes:

  • changing the AllTest.java to use the junit5 suite api
  • use SelectClasses instead of SelectPackages, to prevent the platform engine from discovering unrelated packages which causes errors in the build
  • suppress the warning PMD.JUnit5TestShouldBePackagePrivate because our tests are executed in test suites and must be public
  • fixed discovered failing tests

Copy link
Copy Markdown
Member

@rubenporras rubenporras left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we undo as well all the whitespace changes to the .gitignore files? I think the easiest is just to take them out of the PR.

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you undo this change? I think the project was deleted by me

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same, remove

they are not executed because the master suite AllTest is still in
junit4 suite. the fix includes:
- changing the AllTest.java to use the junit5 suite api
- use SelectClasses instead of SelectPackages, to prevent the platform
engine from discovering unrelated packages which causes errors in the
build
- suppress the warning PMD.JUnit5TestShouldBePackagePrivate because our
tests are executed in test suites and must be public
- fixed discovered failing tests
@markdomeng markdomeng merged commit 6f09c61 into dsldevkit:master Nov 6, 2025
2 checks passed
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.

3 participants