vscode-testcafe icon indicating copy to clipboard operation
vscode-testcafe copied to clipboard

Can not run test which contains special characters in test name using vscode-testcafe extension

Open AM1988 opened this issue 4 years ago • 0 comments

Hello.

Looks like an extension does not properly parse the test name, which is why the test does not start.

If I run test from cli by npm run test where test script is specified in my package.json as "test": "testcafe chrome tests/*.test.ts" it works fine. Steps to reproduce:

Create a test like (note a single quote in test name) test('Test\'name', async () => {}) and try to run it using the option 'Run Test(s) in Chrome'

OS: Windows testcafe: 1.14.0

When I use the option 'Run Test(s) in Chrome' on my project directory the testcafe test can't find the needed test and logs the following information

Debugger attached.
The "filter" option from the configuration file will be ignored.
ERROR The specified filter settings exclude all tests.
Modify these settings to leave at least one available test.
For more information on how to specify filter settings, see https://devexpress.github.io/testcafe/documentation/using-testcafe/configuration-file.html#filter.

AM1988 avatar Apr 29 '21 08:04 AM1988