microsoft / build-server-for-gradle

An implementation of the Build Server Protocol for Gradle
MIT License
45 stars 7 forks source link

Add support for delegating test and run/debug execution #119

Open graemerocher opened 6 months ago

graemerocher commented 6 months ago

The hooks seem to be there but it is currently unimplemented. We need to be able to delegate test and run execution to Gradle.

It seems from the blog is this is planned. Is there an ETA?

jdneo commented 6 months ago

Hi @graemerocher,

Yes, it's in our plan. So far there is no concrete ETA yet.

jdneo commented 1 week ago

Hi @graemerocher,

I'm working on the test delegation support with @Arthurm1 recently, and the code is closed to be ready.

Is there any sample project in Micronaut using Gradle in which tests are not working in VS Code previously. I can use it to test if that's working now.

graemerocher commented 1 week ago

Great news! Sure you can grab any example from Micronaut Launch hat uses testcontainers/docker to run tests:

curl --location --request GET 'https://launch.micronaut.io/create/default/com.example.demo?lang=JAVA&build=GRADLE_KOTLIN&test=JUNIT&javaVersion=JDK_21&features=mysql&features=data-jdbc' --output demo.zip
graemerocher commented 1 week ago

running tests that require testcontainres/docker requires delegating to the build tool

jdneo commented 1 week ago
Screenshot 2024-06-26 at 16 00 06

Works now, thanks for sharing the sample project. I'll keep you updated.

jdneo commented 6 hours ago

Update: client side PRs are under review:

https://github.com/microsoft/vscode-java-test/pull/1705 https://github.com/microsoft/vscode-gradle/pull/1510