Support junit test execution data for JavaScript/TypeScript

junit’s test results format is pretty ubiquitous across various CI servers, so there are lots of packages out there available for generating junit reports for JavaScript test suites.

Sonar’s generic test execution data format is just harder to find tooling for.

1 Like

@jrnail23 which test frameworks would you like to support?

There is

While these projects are developed by community and not officially supported by SonarSource, they should be working and if they are not, we can perhaps contribute a fix.

Wow, nearly 2 years later, I finally get around to replying here (SORRY!!!).

I’m already using jest-sonar-reporter and mocha-sonarqube-reporter, but it’s a pain to set up and maintain across my org’s 77 projects. I just figured it would be really nice to be able to eliminate some of the sonar-specific maintenance overhead.

Thanks for your reply, BTW.

Reviving this thread to give a hearty +1 to the original post. There is plenty of tooling available in the JS ecosystem for supporting the JUnit XML test report format.

We’re using vitest in a mono repository setup. Vitest has a built-in junit reporter - and there is tooling available to merge multiple JUnit XML reports into a single report file.

I would much rather depend on offical reporters than rolling our own reporter, or depending on a small community provided reporter.

1 Like