You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code coverage was computed not taking into account the restapi code coverage. This was due to two reasons:
A bug in jest (the test runner), that saves the file paths with relative paths instead of absolute. This is a problem in the restapi because the tests were stored in a folder 'tests'.
Having two github actions jobs for executing the unitary tests was actually making two different test reports, that when uploaded to SonarCloud, were being overwritten.
In order to solve these two issues, the following changes need to be made:
Take outside the tests directory the tests for the restapi. Update the package.json of this module accordingly.
Replace the two github actions jobs for the unit tests in only one. This job should install the dependencies and run the tests for both modules (or more if it is the case in your project). When doing this, we only upload to sonarcloud one test coverage report so everything will work as expected.
Code coverage was computed not taking into account the restapi code coverage. This was due to two reasons:
In order to solve these two issues, the following changes need to be made:
The text was updated successfully, but these errors were encountered: