Visual Studio Code AVA test runner. This extension helps to run a single test file/test case right from the code.
Run and debug test file via VS Code command or test case via Code Lens
This extension assume the project uses & has installed AVA package.
Extension commands are run via npx. Should work even if you use pnpm.
This extension contributes the following settings:
ava-runner.experimentalEnabled [ boolean ]: enable all experimental features. Those features might be unstable or could be removed from the extension in the feature.
CodeLens: run test case by line number. Please note that some TS projects might not be able to run test case with this code lens. However, this option is more accurate and it is free from the glob pattern issue related with --match AVA options. AVA 4.3.1 made some improvements in this topic.
Single tests are run via the --match option. Be aware that some characters in the test case name have a special meaning.