Include 6 in junit.platform import version range#7054
Include 6 in junit.platform import version range#7054chrisrueger wants to merge 2 commits intobndtools:masterfrom
Conversation
Updated the Import-Package directive to limit org.junit.platform.* to versions below 7, ensuring compatibility with supported JUnit Platform versions including to Junit6. This is because of JUnit6's new version scheme where all versions now start at 6.x : https://github.com/junit-team/junit-framework/wiki/Upgrading-to-JUnit-6.0#new-versioning-scheme Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
|
Converted back to draft. I did some local tests with the tests of bnd's testsuite itself and tried to upgrade it to JUnit6. All tests failed. It turns out JUnit6's OSGi headers are different so that the range expansion alone is not enough. Example JUnit Platform 1.10.1 just had JUnit Platform 6.0.2 has Notice the I could make some tests pass by explicitly filtering for the instead of just (without the But I am not sure and there were still some tests which did not work. I guess because there is more similar stuff like Long story short: I think @kriegfrj any thoughts? |
Bump JUnit Jupiter and JUnit Platform versions from 5.14.2/1.14.2 to 6.0.2 in build and configuration files. Update import in bnd.bnd to support org.junit.platform.commons.util for JUnit 6 compatibility, with a note about ongoing compatibility issues between JUnit 5 and 6. A lot of tests in ActivatorJUnitPlatformLatestTest work (but not all) while all now fail in ActivatorJUnitPlatformEarliestTest This commit is just to capture my current state of work, to have a reference point where I am currently at. It is not working yet Signed-off-by: Christoph Rueger <chrisrueger@gmail.com>
Closes #7052
Updated the Import-Package directive to limit org.junit.platform.* to versions below 7, ensuring compatibility with supported JUnit Platform versions including to Junit6. This is because of JUnit6's new version scheme where all versions now start at 6.x : https://github.com/junit-team/junit-framework/wiki/Upgrading-to-JUnit-6.0#new-versioning-scheme
This creates the following
Import-Packageforbiz.aQute.tester.junit-platform.jar