You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Run Test -> Delegate to Gradle does not work #1771
Summary:
Running a test case using "Delegate to Gradle" does not produce any test results. It doesn't look like the tests actually run.
Looks like this problem was reported as a VSCode bug some time ago, but was closed there as it was an extension issue. I followed the instructions in that issue and ran the extension bisect, which pointed to the Java Test Runner extension as the problem.
The problem can be reproduced with a default Gradle project by following the steps below.
Select Kotlin for the DSL (I suspect the problem will occur with Groovy as well)
Specify a new folder for the project
Open the project folder after it has been created.
The project will have an AppTest.java automatically created with a single test case.
Open the AppTest.java file.
Run the test case from the gutter. This will use the Java Test Runner by default. This will succeed, and show up as a success under the test results tab.
Now switch to the Testing view, and change the default test runner to "Delegate to Gradle"
Re-run the test case from the gutter. This time there won't be any indication of the test succeeding or failing or even running in the test results tab.
I used the pre-release Version 3.17.2025040701 of the Gradle extension and that doesn't work either. As before, there is no information about the test succeeding/failing. I'm attaching a snapshot of the Test Runner output, The oldest test (at 4:17:02) is using the built in test runner and shows the test running and succeeding. When I delegate to Gradle, there is a run listed (at 4:17:16) which doesn't show the success/failure status, and I can't tell if it actually did anything else.
Hi ssbusc1, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Here are some steps to get “Delegate to Gradle” working:
Make sure you’re on the latest extensions (Test Runner for Java ≥ 0.44.0, Gradle for Java ≥ 3.16.4).
In the Testing view, click the dropdown next to the Run button → Select Default Profile → check Delegate Test to Gradle.
Or right-click on a test gutter icon → Execute Using Profile… → choose Delegate Test to Gradle → Run.
If after updating and configuring you still see no test output, follow or comment on issue #1045 for progress on full support.
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
Activity
jdneo commentedon Apr 25, 2025
Have you tried pre-release version of the Gradle extension?
ssbusc1 commentedon Apr 25, 2025
I used the pre-release
Version 3.17.2025040701of the Gradle extension and that doesn't work either. As before, there is no information about the test succeeding/failing. I'm attaching a snapshot of the Test Runner output, The oldest test (at 4:17:02) is using the built in test runner and shows the test running and succeeding. When I delegate to Gradle, there is a run listed (at 4:17:16) which doesn't show the success/failure status, and I can't tell if it actually did anything else.mamilic commentedon Aug 22, 2025
Not working for me either. Replication steps
kirisaki-vk commentedon Oct 21, 2025
I also have the same issue.
github-actions commentedon Nov 13, 2025
Hi ssbusc1, I'm an AI Support assistant here to help with your issue. While the team reviews your request, I wanted to provide some possible tips and documentation that might help you in the meantime.
Here are some steps to get “Delegate to Gradle” working:
References:
Can't run test due to multiple bindings #1436 (comment)
Support Gradle test delegation #1045 (comment)
If after updating and configuring you still see no test output, follow or comment on issue #1045 for progress on full support.
The team will respond to your issue shortly. I hope these suggestions are helpful in the meantime. If this comment helped you, please give it a 👍. If the suggestion was not helpful or incorrect, please give it a 👎. Your feedback helps us improve!
guest73 commentedon Apr 12, 2026
I can confirm I also have this issue. It used to work for me some time ago.
chagong commentedon Apr 13, 2026
guest73 Can you share your setup?
I just tried the repro step in this issue, and 'delegate test to gradle' is working correctly.
fix: decouple Gradle test delegation from BSP import
chagong commentedon Apr 14, 2026
#1726
fix: decouple Gradle test delegation from BSP import (#1810)