Coverage report results to 0 lines covered even with unit and functional test
- Version:
^7.11.2 - Platform:
Windows 11
Code coverage results in 0 even if there are unit and functional test added. I am using Adonis framework v5 and Japa for unit test and incorporating c8 for code coverage, here is the result:

I also have it reported here: Japa + c8 coverage uncovered even with test
Update: Looks like it c8 doesn't record the test I created using nock library for mocking http request or even the functional test from Adonis itself.
Created a repo for the issue: Adonis c8 controller uncovered
Just an update looks like c8 coverage is now working as expected. We refactored our functional test and it seems that the issue was in relation to our messaging queue affecting our test and mixing unit and functional test and using nock, the library nock have an effect with the overall endpoints and the functional test.
In summary don't use nock and do functional test at the same time. Either use nock for unit test only with no functional, or just go with functional test. Feel free to close this question.