You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
P.S.
Test file exists, but no tests are found because of another unrelated issue with my build step. I've completely missed it because I was sure everything is alright since the tests pipeline was green 🤦♂️
I want to make sure that whenever no tests are found(files/tests), the ui-test fails.
Steps to reproduce
1. Checkout: https://github.com/EcksDy/vscode-env-switcher/tree/fix-not-failing-when-no-tests-run
2. Run `npm run install:all`
3. Run `npm run ui-test`
Logs
Extension 'env-switcher-0.5.2.vsix' was successfully installed.
Loading mocha configuration from ./src/ui-test/setup/.mocharc.json
0 passing (1ms)
... exit 0
Operating System
Windows 10, WSL 2, Ubuntu 20.04
Visual Studio Code
1.85.0
vscode-extension-tester
5.10.0
NodeJS
v18.13.0
npm
8.19.3
The text was updated successfully, but these errors were encountered:
Describe the bug
When no tests are found, the
fail-zero
flag in specified.mocharc.json
is not respected, and process still does exit 0, although no tests were found.Logs can be found in the Test OS Ubuntu-latest - VSCode latest step.
P.S.
Test file exists, but no tests are found because of another unrelated issue with my build step. I've completely missed it because I was sure everything is alright since the tests pipeline was green 🤦♂️
I want to make sure that whenever no tests are found(files/tests), the ui-test fails.
Steps to reproduce
Logs
Operating System
Windows 10, WSL 2, Ubuntu 20.04
Visual Studio Code
1.85.0
vscode-extension-tester
5.10.0
NodeJS
v18.13.0
npm
8.19.3
The text was updated successfully, but these errors were encountered: