kelemen / netbeans-gradle-project

This project is a NetBeans plugin able to open Gradle based Java projects. The implementation is based on Geertjan Wielenga's plugin.
170 stars 57 forks source link

Add JUnit 5 support #376

Open andreaseberhoefer opened 6 years ago

andreaseberhoefer commented 6 years ago

Hi,

I followed this tutorial (https://howtoprogram.xyz/2016/09/25/junit-5-gradle-example/) for a basic JUnit 5 gradle example.

I had to change the reportsDir in gradle, so the netbeans plugin can find report. After that I can run all tests and gradle test says that the build was successful, but in the "Test Result"-Tab all tests are red. I think this is caused by some little changes in the report format. In each testcase tag now exists a system-out tag with some meta-data:

<system-out><![CDATA[
unique-id: [engine:junit-jupiter]
display-name: JUnit Jupiter
]]></system-out>

I think you interpreted this content as an error.

There is a little demo project in the attachments.

junit-5-example.zip

kelemen commented 6 years ago

Thanks for the report, I will have a look at it after I fixed some JDK 9 issues.