vscode-go
vscode-go copied to clipboard
goTest: Implement compatibility for test suite sub-tests
goTest: Implement compatibility for test suite sub-tests
- Increase regex compatibility for test suites and its sub-tests
- Changes regex to search for any root test suite functions that matches the function name and sub-test name
- Also contains a fix for debugging
- I noticed some incompatibility between funcName sanitization and some pre-existing regexes for test suite detection
- Fix CodeLen args propagation ( it was passed as undefined before )
- Allows to run test functions and sub tests without having cursor inside
These changes are just hotfixes for the suite detection bug that is still present in the codebase. I would require further help to identify the issue behind the existent test suite detection problems with the regexes.
Fixes golang/vscode-go#3725