I am trying to create an extension to run our UI tests from vscode using the built in Test Explorer. I am having trouble understanding the documentation on how to tell vscode what file is a test, and what folder to look into for tests.
The testing framework we use at work is node based and does not currently have an test extension built for it.
https://code.visualstudio.com/api/extension-guides/testing#discovering-tests
My first goal is just to understand how to populate the Test Explorer
const test = controller
.createTestItem(`test1`, `firstTest`, vscode.Uri.file(`path/to/test`));
I am not for sure what to do with the “test” variable at this point
Deshun Coomer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.