Test coverage in Next.js codebase #11512
-
Hi, Is there a particular reason why the test coverage is not being measured in the CI pipelines? From what I can find, Next.js at one point in time did have support for measuring code coverage (#244 and c56fde89) and also published the results to Coveralls, but this was eventually removed from the repository (#7689). Is there any reason for this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
The coverage being tracked was wrong and we didn't use it at the time so we removed it. Almost all our tests are end-to-end integration tests booting up Next.js and the internal files are bundled making it really hard to track code coverage as-is. However our test suite is very extensive and is continuously expanded: https://github.com/zeit/next.js/tree/canary/test/integration |
Beta Was this translation helpful? Give feedback.
The coverage being tracked was wrong and we didn't use it at the time so we removed it.
Almost all our tests are end-to-end integration tests booting up Next.js and the internal files are bundled making it really hard to track code coverage as-is.
However our test suite is very extensive and is continuously expanded: https://github.com/zeit/next.js/tree/canary/test/integration