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

Junit 5 Single Test method execution fails #399

Closed qeepcologne closed 6 years ago

qeepcologne commented 6 years ago

Szenario:

I got from the output window: gradle :cleanTest :test --tests de.k2interactive.qeep.integrationtest.testcases.ChatRequestTest.testMethodXy()

this is not working:

No tests found for given includes: [de.k2interactive.qeep.integrationtest.testcases.ChatRequestTest.testMethodXy()](--tests filter)

i think correct is:

gradle :cleanTest :test --tests de.k2interactive.qeep.integrationtest.testcases.ChatRequestTest.testMethodXy (without the round brackets).

tested with gradle-4.10.2, NB9, i also tried this version: http://plugins.netbeans.org/download/plugin/9800

tcfurrer commented 6 years ago

Same thing happens for me with Netbeans 9.0 with Gradle Plugin 2.0.1, Windows, Gradle 4.8, Java 8, and Junit 5.3.

You fixed similar thing already for Issue #392, and I suspect this is just a second case where same type of fix needs to be applied. In that other case you simply chopped off everything after the first "(" or "[" to account for Junit 5's slight differences in testcase name reporting.

kelemen commented 6 years ago

Do you have a sample project with which I can conveniently check this problem?

kelemen commented 6 years ago

I can reproduce it with this: https://github.com/junit-team/junit5-samples/tree/master/junit5-jupiter-starter-gradle. So I'll use this project for verification.

kelemen commented 6 years ago

I believe this issue should be fixed now in master. Can you verify it?

qeepcologne commented 6 years ago

thanks a lot, it's working now.