An open API service indexing awesome lists of open source software.

https://github.com/sculpt0r/vsc-ava-test-runner

Run AVA tests from the source code.
https://github.com/sculpt0r/vsc-ava-test-runner

ava vscode-extension

Last synced: 4 months ago
JSON representation

Run AVA tests from the source code.

Awesome Lists containing this project

README

          

# vsc-ava-test-runner
[![CI - test](https://github.com/sculpt0r/vsc-ava-test-runner/actions/workflows/test.yml/badge.svg?branch=master)](https://github.com/sculpt0r/vsc-ava-test-runner/actions/workflows/test.yml)

Visual Studio Code [AVA](https://github.com/avajs/ava) test runner. This extension helps to run a single test file/test case right from the code.

## Features

Run and debug test file via VS Code command or test case via Code Lens

![code lens](images/readme.png)
## Requirements

- This extension assume the project uses & has installed `AVA` package.
- Extension commands are run via `npx`. Should work even if you use `pnpm`.

## Extension Settings

This extension contributes the following settings:

* `ava-runner.experimentalEnabled` [ boolean ]: enable all [experimental features](#experimental-features). Those features might be unstable or could be removed from the extension in the feature.

## Experimental Features

* CodeLens: run test case by [line number](https://github.com/avajs/ava/blob/main/docs/05-command-line.md#running-tests-at-specific-line-numbers). 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`](https://github.com/avajs/ava/releases/tag/v4.3.1) made some improvements in this topic.

## Known Issues
Single tests are run via the [`--match` option](https://github.com/avajs/ava/blob/main/docs/05-command-line.md#running-tests-with-matching-titles). Be aware that some characters in the test case name have a special meaning.