diff --git a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala index a062ea06fe8..282797e36f1 100644 --- a/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala +++ b/bsp/worker/src/mill/bsp/worker/MillBuildServer.scala @@ -385,6 +385,7 @@ private class MillBuildServer( case (m: SemanticDbJavaModule, ev) if clientWantsSemanticDb => (m.compiledClassesAndSemanticDbFiles, ev) case (m: JavaModule, ev) => (m.compile, ev) + case (m: TestModule, ev) => (Task.Anon { () }, ev) case (m, ev) => Task.Anon { Result.Failure( s"Don't know how to compile non-Java target ${m.bspBuildTarget.displayName}"