Arquisoft / faq

Frequently asked questions - Software architecture course
MIT License
4 stars 0 forks source link

Coverage report doesn't collect data from restapi #40

Closed labra closed 10 months ago

labra commented 1 year ago

The template provided by the teachers contained an bug in the way that it was collecting coverage report. It was only collecting data from the webapp module leaving out the information from the restapi. This was due to two reasons:

In order to solve these two issues it is necessary to do the following changes:

  1. Update the package.json from restapi to change the folder were the tests will be created. Line 6
  2. Replace the two github actions jobs by one action jobs. The job should install the dependencies and run the tests for both modules. In this way we only upload to sonarcloud one test coverage so everything works as expected.
  3. Add a jest.config.ts file to configure jest for the restapi.

You can see the result in lomap_0 repository and the resulting coverage report in SonarCloud