Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

junit setup

12 views
Skip to first unread message

e.d.pro...@gmail.com

unread,
Dec 21, 2022, 9:11:37 AM12/21/22
to
FYI
I have a project I recently converted to maven which has junit 4 tests.
I had added the artifact dependency junit-jupiter-api for some reason which is required for writing junit 5 tests.
I'm guessing because it had this dependency, eclipse automatically selected "junit 5 runner" when I right clicked in eclipse to select run as junit for junit 4 tests. This was showing an execution time on the junit tab but wasn't showing the test results.
If you want eclipse to use the junit 5 runner to run junit 3 or 4 tests, you can either edit the project build path and add the junit 5 library, or update maven dependencies to add artifact junit-vintage-engine, either works.
This had me confused for a bit because it wasn't showing results and wasn't giving any error message.
0 new messages