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 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:
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.
^7.11.2
Windows 11
Code coverage results in
0
even if there are unit and functional test added. I am usingAdonis framework v5
andJapa
for unit test and incorporatingc8
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 usingnock
library for mocking http request or even the functional test from Adonis itself.Created a repo for the issue: Adonis c8 controller uncovered
The text was updated successfully, but these errors were encountered: