Here is the structure of my project. Basically it's the hello world project from SBT examples. I have successfully exported it to bloop.
Now I am trying to run it with BSP buildTaregt/test. Here is the log of all JSON RPC messages.
1 tests, 1 failedMissing configured test frameworks in root which is probably why, on line 214 I get statusCode 1, which probably maps to ch.epfl.scala.bsp4j.StatusCode.OK (ordinal = 1). Seems like bloop is not able to understand the results generated by the test framework. However, when running from CLI I get information about failing tests (at least exit code is not 0), which means that behaviour of BSP server in Bloop is inconsistent with the CLI (if I don't miss some important configuration).

Thanks for reporting! @samvel1024
Bloop uses the same logic for both, the only difference here is in how the logs are reported to the client and, most importantly, the exit code, which is OK via BSP (a bug) but failed in the CLI. The buildTarget/test endpoint has not yet been completely finished and these are well-known issues. I'll have a look at fixing them soon.
Most helpful comment
Thanks for reporting! @samvel1024
Bloop uses the same logic for both, the only difference here is in how the logs are reported to the client and, most importantly, the exit code, which is OK via BSP (a bug) but failed in the CLI. The
buildTarget/testendpoint has not yet been completely finished and these are well-known issues. I'll have a look at fixing them soon.