Closed ChrisVesters closed 3 weeks ago
The attached project has compilation errors
Anyway, I comment out RunCucumberTest.java
and StepDefinitions.java
, and using gradle delegation feature, looks like it works as expected.
I don't think you are looking at the right project. The one I uploaded doesn't contain any Cucumber tests.
It only contains a single DemoTest file.
Have you tried Delegate Test to Gradle
mentioned above?
I don't seem to have the option to run it with a certain profile.
Update: turns out I didn't have the extension enabled. So I can run it now like that, but it doesn't seem to do anything.
but it doesn't seem to do anything.
Could you explain more about what happened on your side?
As I say. I don't see any output.
Not in the test tab, not in the debug tab, nothing.
The test tab only shows this: * The test run did not record any output.
If i run it on the command line with gradle it does run the test successfully.
./gradlew test
BUILD SUCCESSFUL in 8s
Not in the test tab, not in the debug tab, nothing.
It's a limitation right now from upstream: https://github.com/microsoft/build-server-for-gradle/issues/119#issuecomment-2270972146
Can you see the green mark after running in the gutter?
I don't see the green mark. I also don't seen an update about the tests in the testing panel.
On the image above I had previous runs directly through VSCode (also tried with coverage and such) I cleared the previous runs and tried do always delegate to Gradle
I cannot repro, here is what I've seen for this project.
https://github.com/user-attachments/assets/59797fea-d14a-4de1-a3e5-fc87e236903b
Interesting. I just tried to disable all extensions except for Gradle and Java test runner, but I still have the same issue? You think it could be related to the platorm/machine?
I am using Mac.
You think it could be related to the platorm/machine?
No I don't think so.
What are the enabled extensions and their versions on your side?
I tried to disable as much extensions as I could.
Still active extensions are:
I am going to close this ticket for the following reasons:
test-resources
plugin from Micronaut. If you simply use the dependencies the runner works fine out of the box (no need to delegate to mvn)Because of this, this doesn't feel like an important thing.
demo.zip