bazel-sonarqube icon indicating copy to clipboard operation
bazel-sonarqube copied to clipboard

Add support for js, ts and php test and coverage files

Open KyleW opened this issue 4 years ago • 5 comments

Extends the library to support a few of the properties one might want for TypeScript, JavaScript and PHP projects. Also adds support for generic test execution reports.

KyleW avatar Jun 05 '20 23:06 KyleW

Let me know if there's a more "bazel-y" way to do this. In my case, my test runs and coverage reports are currently happening outside of bazel.

KyleW avatar Jun 05 '20 23:06 KyleW

Thanks for the change!

I like the sound of this - I've got a project which will soon need to get JS/TS tests and coverage tracked in SQ. I don't have any strong opposition to being able to import external reports. Your change should work with the new attrs in the same way as the coverage.dat pattern: do "stuff", and then use a filegroup to reference the generated files.

Could you perhaps add a usage example of these attributes to the README?

As a side note, I'm curious whether you've got the bazel-SQ environment to detect and use for analysis the TypeScript toolchain from rules_nodejs. I've not had a chance to investigate that myself.

Zetten avatar Jun 15 '20 09:06 Zetten

Any update on this ?

darkrift avatar Sep 25 '22 13:09 darkrift

I am also interested in this. @Zetten is this going to be merged? I can make some changes if needed and if @KyleW is not available.

Mivr avatar Oct 04 '23 08:10 Mivr

@Mivr Unfortunately I've not had a chance to verify myself, but if this is working for you I'll be happy to merge it if you bring it up to date with the main branch and update the README.

Zetten avatar Oct 04 '23 09:10 Zetten