-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Coverage is not properly calculated #5519
Comments
@gitstart-twenty Could you have a look? It needs some strong investigation skills! |
Here is the GitStart Ticket for this issue: https://clients.gitstart.com/twenty/5449/tickets/TWNTY-5519 |
@gitstart-twenty The command have been updated, here is how to reproduce the issue today: Dev (hot reload) serve:
Static serve:
As you can see, most of the files are missing from the code coverage computation (it seems that the coverage only takes files touched by tests into account) |
As you pointed @gitstart-twenty, changes were made in the following commit: 6683ffb?diff=split&w=0 I believe that the problem was already there in the commit above but if you checkout before this commit and run:
the coverage was correct. The goal of this ticket is to use the current commands but have the coverage properly computed |
Thank you. We will work on it. |
Scope & Context
We have recently updated the way storybook tests are run. However, the coverage does not seems to be properly computed anymore on the CI:
See:
As you can see, only a few files (probably the one impacted by the tests) are taken into account. We would like the whole packages/twenty-front to be considered (actually it should respect includes/excludes specified in nyc.config.cjs)
Technical inputs
To reproduce run:
npx nx run twenty-front:storybook:static:test --configuration=modules
npx nx run twenty-front:storybook:static:test --configuration=pages
The coverage is properly computed if we run the following commands
npx nx run twenty-front:storybook:build
(this is not scoped on modules / pages)npx nx run twenty-front:storybook:test --configuration=modules
npx nx run twenty-front:storybook:test --configuration=pages
The text was updated successfully, but these errors were encountered: