Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/start-runner/ava
:space_invader: AVA task for Start
https://github.com/start-runner/ava
ava start task
Last synced: 3 months ago
JSON representation
:space_invader: AVA task for Start
- Host: GitHub
- URL: https://github.com/start-runner/ava
- Owner: start-runner
- License: mit
- Archived: true
- Created: 2016-02-07T17:14:56.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-05T17:26:12.000Z (over 7 years ago)
- Last Synced: 2024-07-02T08:52:36.435Z (4 months ago)
- Topics: ava, start, task
- Language: JavaScript
- Size: 67.4 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
- awesome-ava - start-ava - Run tests with Start. (Packages)
README
# start-ava
[![npm](https://img.shields.io/npm/v/start-ava.svg?style=flat-square)](https://www.npmjs.com/package/start-ava)
[![linux build](https://img.shields.io/travis/start-runner/ava/master.svg?label=linux&style=flat-square)](https://travis-ci.org/start-runner/ava)
[![windows build](https://img.shields.io/appveyor/ci/start-runner/ava/master.svg?label=windows&style=flat-square)](https://ci.appveyor.com/project/start-runner/ava)
[![coverage](https://img.shields.io/codecov/c/github/start-runner/ava/master.svg?style=flat-square)](https://codecov.io/github/start-runner/ava)
[![deps](https://img.shields.io/gemnasium/start-runner/ava.svg?style=flat-square)](https://gemnasium.com/start-runner/ava)[AVA](https://github.com/avajs/ava) task for [Start](https://github.com/start-runner/start).
## Install
```sh
npm install --save-dev start-ava
# or
yarn add --dev start-ava
```## Usage
```js
import Start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import watch from 'start-watch';
import ava from 'start-ava';
import tapSpec from 'tap-spec';const start = Start(reporter());
export const test = () => start(
files('test/**/*.js'),
ava('tap', tapSpec)
);export const tdd = () => start(
files([ 'lib/**/*.js', 'test/**/*.js' ]),
watch(test)
);
```This task relies on array of files and provides the same, see [documentation](https://github.com/start-runner/start#readme) for details.
:point_right: Note that this task will not work together with [start-istanbul](https://github.com/start-runner/istanbul).
## Arguments
`ava(avaReporter, tapReporter)`
* `avaReporter` – name of [AVA reporter](https://github.com/sindresorhus/ava/tree/master/lib/reporters), `'verbose'` by default
* `tapReporter` – optional [tap reporter](https://github.com/substack/tape/#pretty-reporters) for `avaReporter='tap'`