jimmymcp / al-test-runner

VS Code Extension to help run AL tests against Business Central container
https://jpearson.blog/al-test-runner-for-visual-studio-code/
MIT License
12 stars 16 forks source link

Code Coverage in Proecedures shows 0% #120

Closed IceOnly closed 10 months ago

IceOnly commented 10 months ago

I have a Workspace with two apps. MainApp and TestApp.

I Configured the al test runner like discribed here: https://github.com/jimmymcp/al-test-runner/issues/45#issuecomment-1222147738

In the Output Window the coverage is calculated: image

But all procedures in the MainApp and TestApp will show 0% percent, but i know the lines are hit: image

PS: The references in this case are 0 because its an implentation of an interface :)

jimmymcp commented 10 months ago

hi, great that you are using the code coverage 🙂

first thing to check, the code lens stats are only updated each time the whole test suite is run (not individual tests or test codeunits). The code coverage icon in the status bar (bottom right) allows you to toggle the code coverage highlighting between the previous test run and the last time all of the tests were run.

IceOnly commented 10 months ago

Perfect! The button in the Status bar was exactly that i missed!