Support the TestVisible Annotation
See original GitHub issueSummary
The TestVisible annotation doesn’t seem to be supported by the extension pack. Methods marked with the TestVisible annotation are not visible in tests.
Steps To Reproduce:
- Create a private method
- Mark the method with the
@TestVisible
annotation - Create a test class
- Write a test that attempts to use the method provided
Expected result
The method should be visible and not show up in the “Problems” console.
Actual result
The method is not visible and shows up in the “Problems” console.
Additional information
Here is an example
I’ve included a small repository that should reproduce the issue. https://github.com/dv297/testvisible-reproduction
I’m still fairly new to Apex, so pardon me if I’m misunderstanding any of this. I believe the language server is compiled in apex-jorje-lsp.jar, so perhaps whatever repository holds the original source code to that jar would be the more appropriate place to log that, but I haven’t really seen that code around.
VS Code Version: 1.40.2
SFDX CLI Version: 7.36.0-b1c4e9c7c8
OS and version: MacOS 10.14.6
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5 (2 by maintainers)
Top GitHub Comments
I don’t understand why stuffs such basic and fundamental as these are not yet implemented.
Hey all! I’m now seeing that both issues have been fixed in the latest version of the extensions.
I’ll go ahead and close this one for now. Let me know if anyone is seeing any residual issues here, and we can either reopen this issue, or create a new one.