Skip to content

Conversation

@bjhargrave
Copy link
Contributor

No description provided.

@bjhargrave
Copy link
Contributor Author

@kriegfrj With the change to use the JUnit 5.6 jars (from maven central), the org.osgi.test.junit5 project runs the bnd-testing-maven-plugin goal but it fails to find and execute any tests.

Test run finished after 6 ms
[         1 containers found      ]
[         0 containers skipped    ]
[         1 containers started    ]
[         0 containers aborted    ]
[         1 containers successful ]
[         0 containers failed     ]
[         0 tests found           ]
[         0 tests skipped         ]
[         0 tests started         ]
[         0 tests aborted         ]
[         0 tests successful      ]
[         0 tests failed          ]

Previously, the output was

Test run finished after 3201 ms
[         9 containers found      ]
[         0 containers skipped    ]
[         9 containers started    ]
[         0 containers aborted    ]
[         9 containers successful ]
[         0 containers failed     ]
[        26 tests found           ]
[         0 tests skipped         ]
[        26 tests started         ]
[         0 tests aborted         ]
[        26 tests successful      ]
[         0 tests failed          ]

So biz.aQute.tester.junit-platform is not finding any test cases to run when using JUnit 5.6.

Can you look into this?

@kriegfrj
Copy link
Contributor

Figured it out - raised bndtools/bnd#3745 to document and track it. Unfortunate that 5.6 didn't come out a few weeks ago as we might have discovered this bug in time for the 5.0.0 release of Bnd...

@bjhargrave
Copy link
Contributor Author

bndtools/bnd#3746 has a fix for Bnd to run the tests for JUnit 5.6.

Signed-off-by: BJ Hargrave <[email protected]>
Bnd 5.0.0 does not find the tests with JUnit 5.6. So we still use the
older JUnit 5 from the Oxygen repo for Bnd 5.0.0.
See bndtools/bnd#3745.

Signed-off-by: BJ Hargrave <[email protected]>
@bjhargrave bjhargrave merged commit b78b6da into eclipse-osgi-technology:master Jan 31, 2020
@bjhargrave bjhargrave deleted the bnd5 branch January 31, 2020 16:08
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