• junit setup

    From [email protected]@21:1/5 to All on Wed Dec 21 06:11:29 2022
    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.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)