☕️ Classic, reliable, trusted test framework for Node.js and the browser
run tests on appveyor; closes #1813
Christopher Hiller78f36fcfd9f5
diff --git a/appveyor.yml b/appveyor.ymlnew file mode 100644index 00000000..539b8b07--- /dev/null+++ b/appveyor.yml@@ -0,0 +1,26 @@+environment:+ matrix:+ - nodejs_version: '6'+ - nodejs_version: '4'+ - nodejs_version: '0.12'+ - nodejs_version: '0.10'+install:+ - ps: Install-Product node $env:nodejs_version+ - set CI=true+ - set PATH=%APPDATA%\npm;c:\MinGW\bin;%PATH%+ - set PHANTOMJS_CDNURL=https://cnpmjs.org/downloads+ - npm install+ - copy c:\MinGW\bin\mingw32-make.exe c:\MinGW\bin\make.exe+matrix:+ fast_finish: true+build: off+version: '{build}'+shallow_clone: true+clone_depth: 1+test_script:+ - node --version+ - npm --version+ - npm test+skip_commits:+ message: /\[ci\s+skip\]/+diff --git a/karma.conf.js b/karma.conf.jsindex 66d3f978..853a5c50 100644--- a/karma.conf.js+++ b/karma.conf.js@@ -41,7 +41,7 @@ module.exports = function(config) {// TO RUN LOCALLY:// Execute `CI=1 make test-browser`, once you've set the SAUCE_USERNAME and// SAUCE_ACCESS_KEY env vars.- if (process.env.CI) {+ if (process.env.CI && !process.env.APPVEYOR) {// we can't run SauceLabs tests on PRs from forks on Travis cuz security.if (process.env.TRAVIS) {if (process.env.TRAVIS_REPO_SLUG === 'mochajs/mocha'diff --git a/test/integration/diffs.js b/test/integration/diffs.jsindex d8aebba9..25d9ae6d 100644--- a/test/integration/diffs.js+++ b/test/integration/diffs.js@@ -15,7 +15,7 @@ function getExpectedOutput() {describe('diffs', function() {var diffs, expected;- this.timeout(1000);+ this.timeout(2000);before(function(done) {run('diffs/diffs.js', ['-C'], function(err, res) {diff --git a/test/integration/fixtures/regression/issue-1991.js b/test/integration/fixtures/regression/issue-1991.jsindex 96860332..ee08a1d0 100644--- a/test/integration/fixtures/regression/issue-1991.js+++ b/test/integration/fixtures/regression/issue-1991.js@@ -39,7 +39,7 @@ for (var i = 0; i < numOfTests; i += 1) {it('access a variable via a closure', function () {// slow performance on older node.js versions- this.timeout(1000);+ this.timeout(2000);closureVar = new MemoryLeak();});diff --git a/test/integration/hook.err.js b/test/integration/hook.err.jsindex cf3d7c7c..f874b8f3 100644--- a/test/integration/hook.err.js+++ b/test/integration/hook.err.js@@ -3,7 +3,7 @@ var runMocha = require('./helpers').runMocha;var splitRegExp = require('./helpers').splitRegExp;describe('hook error handling', function() {- this.timeout(1000);+ this.timeout(2000);var lines;diff --git a/test/integration/hooks.js b/test/integration/hooks.jsindex 127af189..17958560 100644--- a/test/integration/hooks.js+++ b/test/integration/hooks.js@@ -4,7 +4,7 @@ var splitRegExp = require('./helpers').splitRegExp;var args = [];describe('hooks', function() {- this.timeout(1000);+ this.timeout(2000);it('are ran in correct order', function(done) {run('cascade.js', args, function(err, res) {diff --git a/test/integration/multiple.done.js b/test/integration/multiple.done.jsindex 8bcedf63..d9d9645f 100644--- a/test/integration/multiple.done.js+++ b/test/integration/multiple.done.js@@ -4,7 +4,7 @@ var args = [];describe('multiple calls to done()', function() {var res;- this.timeout(1000);+ this.timeout(2000);describe('from a spec', function() {before(function(done) {diff --git a/test/integration/pending.js b/test/integration/pending.jsindex 529ed80b..36331ed6 100644--- a/test/integration/pending.js+++ b/test/integration/pending.js@@ -4,7 +4,7 @@ var args = [];describe('pending', function() {describe('pending specs', function() {- this.timeout(1000);+ this.timeout(2000);it('should be created by omitting a function', function(done) {run('pending/spec.js', args, function(err, res) {@@ -19,7 +19,7 @@ describe('pending', function() {});describe('synchronous skip()', function() {- this.timeout(1000);+ this.timeout(2000);describe('in spec', function() {it('should immediately skip the spec and run all others', function(done) {diff --git a/test/integration/regression.js b/test/integration/regression.jsindex b8c64b84..6e6606a5 100644--- a/test/integration/regression.js+++ b/test/integration/regression.js@@ -4,7 +4,7 @@ var path = require('path');var run = require('./helpers').runMocha;describe('regressions', function() {- this.timeout(1000);+ this.timeout(2000);it('issue-1327: should run all 3 specs exactly once', function(done) {var args = [];diff --git a/test/integration/timeout.js b/test/integration/timeout.jsindex 9f0985c0..c8321c0b 100644--- a/test/integration/timeout.js+++ b/test/integration/timeout.js@@ -3,7 +3,7 @@ var run = require('./helpers').runMochaJSON;var args = [];describe('this.timeout()', function() {- this.timeout(1000);+ this.timeout(2000);it('is respected by sync and async suites', function(done) {run('timeout.js', args, function(err, res) {diff --git a/test/integration/uncaught.js b/test/integration/uncaught.jsindex cddc52b1..2ca186e4 100644--- a/test/integration/uncaught.js+++ b/test/integration/uncaught.js@@ -3,7 +3,7 @@ var run = require('./helpers').runMochaJSON;var args = [];describe('uncaught exceptions', function() {- this.timeout(1000);+ this.timeout(2000);it('handles uncaught exceptions from hooks', function(done) {run('uncaught.hook.js', args, function(err, res) {