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
11 stars 16 forks source link

ObjectDeclarationFromDocument search range should be extended #135

Closed MaxFalcone closed 5 months ago

MaxFalcone commented 5 months ago

Hello, since namespaces was introduced declaration of the object might look like following image getObjectDeclarationFromDocument and documentIsTestCodeunit finctions are only searching throug 10 (50) first lines of the document for the object declaration, hence some objects that are using namespaces may not be processed correctly and won't show code coverage.