bcgov / bcgov/wps

Configure SonarCloud to account for frontend unit test coverage

Open
#891 0 comments 0 reactions 0 assignees View on GitHub
4Refinement
Dominant language
Python
Stars
65
Forks
11
Avg merge
21h 25m
Merged PRs (30d)
70

Description

Currently we just use cypress coverage reports for sonarcloud coverage metrics, we should stitch together those reports and jest unit test reports.

Potentially as easy as adding the unit test coverage report path to: `sonar.javascript.lcov.reportPaths=web/coverage/lcov.info`

Contributor guide

Open the contributing guide

Research direction

Start with the SonarCloud setting `sonar.javascript.lcov.reportPaths=web/coverage/lcov.info` and inspect how the existing Cypress and Jest coverage reports are generated. Configure the reports so SonarCloud accounts for both sources, then verify that the resulting frontend coverage metrics include unit-test coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.