SlickEdit Community

Archived Beta Discussions => SlickEdit 201x Beta Discussions => SlickEdit 2017 v22 Beta Discussion => Topic started by: Marcel on August 06, 2017, 08:40:33 PM

Title: se2017-B1 No support for junit5
Post by: Marcel on August 06, 2017, 08:40:33 PM
I need SE2017 to support junit-5 unit testing (IntelliJ is looming). 
It currently kinda-sorta works in legacy mode (using a junit-4 runner), albeit with a lot of pain and sacrifice
Title: Re: se2017-B1 No support for junit5
Post by: Lee on September 08, 2017, 04:06:48 PM
We are updating our test harness for JUnit 5 tests in the next beta drop.  Wasn't quite ready for Beta 3, so be on the look out for it the next release.  We currently aren't taking any advantage of the any new JUnit 5 features (like @DisplayName for example), we may be able to do something in the future.

At the minimum it will require the following dependencies:
junit-4.12.jar (for running legacy JUnit 4 tests)
junit-platform-commons-1.0.0.jar
junit-platform-engine-1.0.0.jar
junit-platform-launcher-1.0.0.jar

Those are just the dependencies for vsjunit.jar.  Added checks to prompt for those classpaths.  But there are a number of other dependent jar files required that you are going to just have to add manually depending on on if you are running JUnit 4 or JUnit 5 tests (junit-vintage-engine-4.12.0.jar vs junit-jupiter-engine-5.0.0.jar). 

Currently building of the latest snapshot of RC3, so hopefully there aren't a bunch of changes as the progress toward full release.