Skip to content

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

@AM1988

Description

@AM1988

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions