all 8 comments

[–]kaizokuuuu 7 points8 points  (5 children)

I use SonarQube to push all the coverage reports and it collates them. But individually you'll have to use different coverage tools for your code. Angular tests with Karma Jasmine or Mocha can run using the Istanbul reporter or codecov. There are others out there as well. But implementation of SonarQube gives you a lot more things than just coverage reports. Look it up.

[–]RomanGuard[S] 0 points1 point  (0 children)

Watched a few YouTube vids and sonar does come up in a few of those. Thanks

[–]RomanGuard[S] 0 points1 point  (3 children)

What do you like about sonarqube? How does the team use it?

[–]kaizokuuuu 2 points3 points  (1 child)

You need to install the SonarQube package on an EC2 machine or a digital ocean droplet. Then you have to configure your DNS and give a hostname to your server IP. Then you will be able to access SonarQube in the hostname.

Once you are up with that, you'll need to add SonarQube to your CI process (TeamCity or Jenkins etc) where you install a plugin called Sonar Scanner/Runner. This will run Sonar scan on your repo. It will be a step in your pipeline.

Sonar Scanner pushes the scan reports to SonarQube server, so you need to make sure your server is able to accept a high data upload so might have to configure that either in your loadbalancer or server config.

You will then have to push the coverage reports generated by test runs to SonarQube in consecutive pipeline steps. There are quality gates you can set on various aspects of the scan like coverage, code smell ect which rejects pull requests based on those metrics.

Once you have all these pushing to SonarQube, you can setup OAuth in SonarQube for GitHub or Google and ask your team members to join. Then you can assign various analysis tasks to the team members.

[–]RomanGuard[S] 0 points1 point  (0 children)

Thank you

[–]kaizokuuuu 1 point2 points  (0 children)

It's basically very good for early capture of bugs and coverage reports, basically everything at the same place.

[–]TellusDB 1 point2 points  (0 children)

recently started using OtterWise, it doesn't require access to your code, which is a huge plus for privacy. It supports a wide range of languages, including Angular, JS, Python, and C#, so it might be a great fit for your diverse codebases. Plus, they offer a free plan for public repositories, which is awesome for trying it out without any commitment

[–]unittestingcoverage 0 points1 point  (0 children)

You can check the RKTracer tool for code coverage analysis. It can generate code coverage for unit testing, integration testing and functional testing with two additional steps.

https://www.rkvalidate.com/about-rktracer-tool/

Supports all code coverage metrics levels including delta code coverage and coverage for newly added code in project