Skip to content
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

CodeLense for Test coverage and Code coverage #129

Open
MaxFalcone opened this issue Mar 5, 2024 · 1 comment
Open

CodeLense for Test coverage and Code coverage #129

MaxFalcone opened this issue Mar 5, 2024 · 1 comment

Comments

@MaxFalcone
Copy link

MaxFalcone commented Mar 5, 2024

I'm on version 0.10.3

  1. Code coverage percent is shown for methods but not for triggers
    image
  2. I've not managed to get "Show X tests" action to show up. Like you have in documentation. See screenshot above, I have no such actions. Command Show related tests doesn't do anything either.
    This feature is the reason I came across your great extension and started using it. What do I need to do?
    image
    The testCoverage.json file is always empty array or look like this after a full tests run.
    image
  3. If I understang correctly, coverage % is only shown if I run all rtests at once. If yes, then it might be worth mentioning somwhere in docu. But then coverage might be calculated wrong.
    3.1. Here I run only one test codeunit (54005)
    image
    3.2. Here I run the other codeunit (54007)
    image
    3.3 Here I run both of them at once (54005 and 54007). See that code coverage is shown for the latest one only (54007).
    image
  4. One more thing. Code coverage is not shown if the app being tested is the Base App (sources of it). Do you have any restrictions in extension for this?
@MaxFalcone
Copy link
Author

Hi, I think I found out why I'm not getting codelens for test coverage on start.
There is an error when extension is activated.
image
Error happens in this line.
I'm not very familiar to TS, but I changed code to look more like code coverage and it worked.
image
image
Could you please fix it properly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant