vscode: Extension tests not found on Azure Pipeline

I have an extension, initially created using the standard yo code template, and successfully uploaded to the market place. I have created a test suite, which works correctly when running locally (i.e. pressing F5), and I now wanted to add CI testing to the Github repo.

I followed the instructions on Continuous Integration and created a config YAML file. The extension compiles successfully in Azure, however it appears that no tests are discovered.

For example, in this build I intentionally introduced a failing test, but it still passes.

Is there a step I’m missing, or a good way to debug the problem?

PS: I posted this question on Stackoverflow a week ago, but received no replies. Hence, escalating it to an issue.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (9 by maintainers)

Most upvoted comments

Indeed we would not return an exit code of 1 if there is any error when loading and running the mocha test files. I pushed a change to make it fail, however this could end up with a ripple of now failing extension tests for all extensions, so I might have to pull this out again (even though I think the change is right - because not being able to run tests should not be reported as exit code of 0).