oven-sh / bun

Incredibly fast JavaScript runtime, bundler, test runner, and package manager – all in one
https://bun.sh
Other
73.12k stars 2.67k forks source link

Implement a `junit` reporter for `bun test` #8019

Open NateRadebaugh opened 8 months ago

NateRadebaugh commented 8 months ago

What is the problem this feature would solve?

For jest parity and integration with Azure DevOps test reporting, we need to be able publish test results as junit.xml

What is the feature you are proposing to solve the problem?

The JUnit XML file format has been made popular by the JUnit project and has since become the de facto standard format to exchange test results between tools.

What alternatives have you considered?

No response

Haratsu commented 6 months ago

Would also appreciate this, for the same reason: Also getting some coverage report that can be used in CI systems to upload Btw here is that questionn just regarding LCOV #4015

Maybe there should be some general feature / epic for most used formats:

Test reports:

Coverage Reports:

Btw supporting any of those marked with [*] will enable converting reports to other useful formats without loosing information

jd-apprentice commented 2 months ago

I'm okay with junit and cobertura at least, if someone is doing anything about it and needs help send me a message and I try to help!

owenizedd commented 1 month ago

Agree at least should have junit and cobertura, right now we have lcov but Gitlab doesn't support it. I'd also like to help

KholdStare commented 4 weeks ago

Chiming in - We want to migrate to bun from yarn + node + jest, and have some infrastructure already set up in CI for test reports, that rely on junit output. This would greatly simplify our migration.