redhat-developer / vscode-extension-tester

ExTester: Your Essential UI Testing Companion for Visual Studio Code Extensions! Seamlessly execute UI tests with Selenium WebDriver, ensuring robustness and reliability in your extension development journey. Simplify UI testing for your VS Code extensions and elevate the quality of your user interface effortlessly.
Apache License 2.0
258 stars 70 forks source link

feat: Support MOCHA_GREP/MOCHA_INVERT envvars #1262

Closed TamiTakamiya closed 5 months ago

TamiTakamiya commented 5 months ago

This PR for allowing Mocha's grep/invert options through environment variables MOCHA_GREP and MOCHA_INVERT. Following examples show how it can be used:

# Run the test case whose name is "ExtensionsView"
MOCHA_GREP="ExtensionsView" npm run test

# Run the test cases whose name is NOT "ExtensionsView"
 MOCHA_GREP="ExtensionsView" MOCHA_INVERT=true npm run test

Before submitting your PR, please review the following checklist:

Before merging the PR:

sonarcloud[bot] commented 5 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud