-
Notifications
You must be signed in to change notification settings - Fork 301
munit and junit test reporting does not work when sbt runs tests in fork mode #8665
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @mwisnicki, thank you for reporting this!
|
Additional minor problem is that I have warning Finally there's I think unrelated issue that DataDog sometimes stops updating github comment with reports. I think I saw it before so it's likely not caused by this. |
It's interesting that even with
|
So an example test run has following tag: test_session:
fingerprint_v2: 7db8218e3ff2e7d4
name: test-codegen while disconnected but probably related test session looks like this: test_session:
fingerprint: 89df8bdf5ab3d8eb
fingerprint_v2: 7db8218e3ff2e7d4
name: test-codegen Month ago with |
Another strange problem - I have 2 jobs in workflow triggered by PR but now only see reports from one of them. |
I'll try to narrow down which version introduced the break. |
Could you provide more context here please? |
1.47.0 introduced the break |
Which is a shame since it also introduced much needed fix for #8445 |
Hi @mwisnicki, thank you for these details, they helped a lot with reproducing the problem! The fix is included in the Java tracer release v1.48.0 that was rolled out yesterday. Could you please try it out and let me know if it fixes the issue? |
Tracer Version(s)
1.47.3~4a85e1fff5
Java Version(s)
21.0.2
JVM Vendor
Eclipse Adoptium / Temurin
Bug Report
When sbt is configured to run tests in fork mode, neither munit nor junit tests are reported to datadog.
Forking mode works for scalatest.
Expected Behavior
munit with
Test/fork := true
reports tests to datadog.Reproduction Code
build.sbt
src/test/scala/ExampleTest.scala
project/build.properties
Simplified snippet from
.github/workflows/test.yaml
The text was updated successfully, but these errors were encountered: