Skip to content

Commit edf1169

Browse files
committed
add Appveyor to test on Windows
1 parent df76529 commit edf1169

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

appveyor.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
environment:
2+
matrix:
3+
- nodejs_version: '5'
4+
- nodejs_version: '4'
5+
- nodejs_version: '0.12'
6+
- nodejs_version: '0.10'
7+
install:
8+
- ps: Install-Product node $env:nodejs_version
9+
- set CI=true
10+
- npm -g install npm@latest
11+
- set PATH=%APPDATA%\npm;%PATH%
12+
- npm install
13+
matrix:
14+
fast_finish: true
15+
build: off
16+
version: '{build}'
17+
shallow_clone: true
18+
clone_depth: 1
19+
test_script:
20+
- node --version
21+
- npm --version
22+
- npm run test-win

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
},
3434
"scripts": {
3535
"test": "xo && nyc tape test/*.js | tap-dot",
36+
"test-win": "tape test/*.js | tap-dot",
3637
"coveralls": "nyc report --reporter=text-lcov | coveralls"
3738
},
3839
"files": [

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
> Futuristic test runner
44
5-
[![Build Status](https://travis-ci.org/sindresorhus/ava.svg?branch=master)](https://travis-ci.org/sindresorhus/ava) [![Coverage Status](https://coveralls.io/repos/sindresorhus/ava/badge.svg?branch=master&service=github)](https://coveralls.io/github/sindresorhus/ava?branch=master) [![Join the chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sindresorhus/ava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
5+
[![Build Status: Linux](https://travis-ci.org/sindresorhus/ava.svg?branch=master)](https://travis-ci.org/sindresorhus/ava) [![Build status: Windows](https://ci.appveyor.com/api/projects/status/igogxrcmhhm085co/branch/master?svg=true)](https://ci.appveyor.com/project/sindresorhus/ava/branch/master) [![Coverage Status](https://coveralls.io/repos/sindresorhus/ava/badge.svg?branch=master&service=github)](https://coveralls.io/github/sindresorhus/ava?branch=master) [![Join the chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/sindresorhus/ava?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
66

77
Even though JavaScript is single-threaded, IO in Node.js can happen in parallel due to its async nature. AVA takes advantage of this and runs your tests concurrently, which is especially beneficial for IO heavy tests. In addition, test files are run in parallel as separate processes, giving you even better performance and a isolated environment for each test file. [Switching](https://github.com/sindresorhus/pageres/commit/663be15acb3dd2eb0f71b1956ef28c2cd3fdeed0) from Mocha to AVA in Pageres brought the test time down from 31 sec to 11 sec. Having tests run concurrently forces you to write atomic tests, meaning tests that don't depend on global state or the state of other tests, which is a great thing!
88

0 commit comments

Comments
 (0)