From e5463ac2d6c171d3a91caa29a35c1b0d8cf7b569 Mon Sep 17 00:00:00 2001 From: Sondre Nilsen Date: Mon, 23 May 2016 23:11:06 +0200 Subject: [PATCH] Try running AVA in serial --- test/app.js | 4 ++-- test/boilerplate.js | 10 +++++----- test/gulp.js | 31 ++++--------------------------- test/jekyll.js | 12 ++++++------ test/permalinks/date.js | 2 +- test/permalinks/none.js | 2 +- test/permalinks/ordinal.js | 2 +- test/permalinks/pretty.js | 2 +- test/uploading/aws.js | 14 +++++++------- test/uploading/ghpages.js | 12 ++++++------ test/uploading/none.js | 10 +++++----- test/uploading/rsync.js | 14 +++++++------- 12 files changed, 46 insertions(+), 69 deletions(-) diff --git a/test/app.js b/test/app.js index be1fc0d..0a97f57 100644 --- a/test/app.js +++ b/test/app.js @@ -19,7 +19,7 @@ test.before(() => { .toPromise(); }); -test('generates expected files', () => { +test.serial('generates expected files', () => { assert.file([ '.editorconfig', '.gitignore', @@ -33,7 +33,7 @@ test('generates expected files', () => { ]); }); -test('creates package.json correctly', () => { +test.serial('creates package.json correctly', () => { assert.file('package.json'); [ '"name": "jekyllized"', diff --git a/test/boilerplate.js b/test/boilerplate.js index 8af4274..882ed0e 100644 --- a/test/boilerplate.js +++ b/test/boilerplate.js @@ -15,23 +15,23 @@ test.before(() => { .toPromise(); }); -test('creates .editorconfig', () => { +test.serial('creates .editorconfig', () => { assert.file('.editorconfig'); }); -test('creates .gitignore', () => { +test.serial('creates .gitignore', () => { assert.file('.gitignore'); }); -test('creates .gitattributes', () => { +test.serial('creates .gitattributes', () => { assert.file('.gitattributes'); }); -test('creates README.md', () => { +test.serial('creates README.md', () => { assert.file('README.md'); }); -test('README is correct', () => { +test.serial('README is correct', () => { [ '# README', '> This is a great README', diff --git a/test/gulp.js b/test/gulp.js index 14d95a2..54e9247 100644 --- a/test/gulp.js +++ b/test/gulp.js @@ -10,15 +10,15 @@ test.before(() => { .toPromise(); }); -test('creates gulpfile', () => { +test.serial('creates gulpfile', () => { assert.file('gulpfile.js'); }); -test('creates package.json', () => { +test.serial('creates package.json', () => { assert.file('package.json'); }); -test('package.json contains correct packages', () => { +test.serial('package.json contains correct packages', () => { [ '"autoprefixer": "^6.2.3"', '"browser-sync": "^2.11.0"', @@ -50,25 +50,7 @@ test('package.json contains correct packages', () => { }); }); -test('does not create credentials files', () => { - assert.noFile([ - 'aws-credentials.json', - 'rsync-credentials.json' - ]); -}); - -test('does not contain uploading packages', () => { - [ - '"gulp-awspublish"', - '"concurrent-transform"', - '"gulp-rsync"', - '"gulp-gh-pages"' - ].forEach(pack => { - assert.noFileContent('package.json', pack); - }); -}); - -test('contains default gulp tasks', () => { +test.serial('contains default gulp tasks', () => { [ 'clean:assets', 'clean:images', @@ -100,8 +82,3 @@ test('contains default gulp tasks', () => { assert.fileContent('gulpfile.js', 'gulp.task(\'' + task); }); }); - -test('does not contain deploy task', () => { - assert.noFileContent('gulpfile.js', 'gulp.task(\'deploy\''); -}); - diff --git a/test/jekyll.js b/test/jekyll.js index e506f01..4596066 100644 --- a/test/jekyll.js +++ b/test/jekyll.js @@ -18,18 +18,18 @@ test.before(() => { .toPromise(); }); -test('creates Gemfile', () => { +test.serial('creates Gemfile', () => { assert.file('Gemfile'); }); -test('creates _config.yml files', () => { +test.serial('creates _config.yml files', () => { assert.file([ '_config.yml', '_config.build.yml' ]); }); -test('creates src directory', () => { +test.serial('creates src directory', () => { assert.file([ 'src/404.html', 'src/about.md', @@ -40,7 +40,7 @@ test('creates src directory', () => { ]); }); -test('_config.yml contains the correct settings', () => { +test.serial('_config.yml contains the correct settings', () => { [ 'title: jekyllized', 'description: Tests for Jekyllized', @@ -54,7 +54,7 @@ test('_config.yml contains the correct settings', () => { }); }); -test('_config.build.yml contains the correct settings', () => { +test.serial('_config.build.yml contains the correct settings', () => { [ 'future: false', 'show_drafts: false', @@ -64,6 +64,6 @@ test('_config.build.yml contains the correct settings', () => { }); }); -test('fills out humans.txt correctly', () => { +test.serial('fills out humans.txt correctly', () => { assert.fileContent('src/humans.txt', 'Ola Nordmann -- -- @'); }); diff --git a/test/permalinks/date.js b/test/permalinks/date.js index 87e1031..9dd68cd 100644 --- a/test/permalinks/date.js +++ b/test/permalinks/date.js @@ -10,6 +10,6 @@ test.before(() => { .toPromise(); }); -test('sets date permalinks', () => { +test.serial('sets date permalinks', () => { assert.fileContent('_config.yml', 'permalink: date'); }); diff --git a/test/permalinks/none.js b/test/permalinks/none.js index 33178c6..a312283 100644 --- a/test/permalinks/none.js +++ b/test/permalinks/none.js @@ -10,6 +10,6 @@ test.before(() => { .toPromise(); }); -test('sets none permalinks', () => { +test.serial('sets none permalinks', () => { assert.fileContent('_config.yml', 'permalink: none'); }); diff --git a/test/permalinks/ordinal.js b/test/permalinks/ordinal.js index cd835c9..38802ea 100644 --- a/test/permalinks/ordinal.js +++ b/test/permalinks/ordinal.js @@ -10,7 +10,7 @@ test.before(() => { .toPromise(); }); -test('sets ordinal permalinks', () => { +test.serial('sets ordinal permalinks', () => { assert.fileContent('_config.yml', 'permalink: ordinal'); }); diff --git a/test/permalinks/pretty.js b/test/permalinks/pretty.js index 71fbcb1..1a93149 100644 --- a/test/permalinks/pretty.js +++ b/test/permalinks/pretty.js @@ -10,6 +10,6 @@ test.before(() => { .toPromise(); }); -test('sets pretty permalinks', () => { +test.serial('sets pretty permalinks', () => { assert.fileContent('_config.yml', 'permalink: pretty'); }); diff --git a/test/uploading/aws.js b/test/uploading/aws.js index a4c6c0c..a998780 100644 --- a/test/uploading/aws.js +++ b/test/uploading/aws.js @@ -10,15 +10,15 @@ test.before(() => { .toPromise(); }); -test('creates gulpfile', () => { +test.serial('creates gulpfile', () => { assert.file('gulpfile.js'); }); -test('creates package.json file', () => { +test.serial('creates package.json file', () => { assert.file('package.json'); }); -test('contain correct uploading packages', () => { +test.serial('contain correct uploading packages', () => { [ '"gulp-awspublish": "^3.0.1"', '"concurrent-transform": "^1.0.0"' @@ -27,7 +27,7 @@ test('contain correct uploading packages', () => { }); }); -test('does not contain wrong uploading packages', () => { +test.serial('does not contain wrong uploading packages', () => { [ '"gulp-rsync"', '"gulp-gh-pages"' @@ -36,18 +36,18 @@ test('does not contain wrong uploading packages', () => { }); }); -test('contains deploy task', () => { +test.serial('contains deploy task', () => { assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct'); assert.fileContent('gulpfile.js', '// headers for your files and uploads them to S3'); assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\''); }); -test('does not contain wrong uploading tasks', () => { +test.serial('does not contain wrong uploading tasks', () => { assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally'); assert.noFileContent('gulpfile.js', '// uploads your site to your server'); assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github'); }); -test('creates credentials file', () => { +test.serial('creates credentials file', () => { assert.file('aws-credentials.json'); }); diff --git a/test/uploading/ghpages.js b/test/uploading/ghpages.js index 582b6e0..79d62d1 100644 --- a/test/uploading/ghpages.js +++ b/test/uploading/ghpages.js @@ -10,19 +10,19 @@ test.before(() => { .toPromise(); }); -test('creates gulpfile', () => { +test.serial('creates gulpfile', () => { assert.file('gulpfile.js'); }); -test('creates package.json file', () => { +test.serial('creates package.json file', () => { assert.file('package.json'); }); -test('contain correct uploading packages', () => { +test.serial('contain correct uploading packages', () => { assert.fileContent('package.json', '"gulp-gh-pages": "^0.5.2"'); }); -test('does not contain wrong uploading packages', () => { +test.serial('does not contain wrong uploading packages', () => { [ '"gulp-awspublish"', '"concurrent-transform"', @@ -32,12 +32,12 @@ test('does not contain wrong uploading packages', () => { }); }); -test('contains deploy function', () => { +test.serial('contains deploy function', () => { assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github'); assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\''); }); -test('does not contain the wrong uploading task', () => { +test.serial('does not contain the wrong uploading task', () => { assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct'); assert.noFileContent('gulpfile.js', '// headers for your files and uploads them to S3'); assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally'); diff --git a/test/uploading/none.js b/test/uploading/none.js index 4f2f20e..31e9651 100644 --- a/test/uploading/none.js +++ b/test/uploading/none.js @@ -10,22 +10,22 @@ test.before(() => { .toPromise(); }); -test('creates gulpfile', () => { +test.serial('creates gulpfile', () => { assert.file('gulpfile.js'); }); -test('creates package.json file', () => { +test.serial('creates package.json file', () => { assert.file('package.json'); }); -test('does not create credentials files', () => { +test.serial('does not create credentials files', () => { assert.noFile([ 'aws-credentials.json', 'rsync-credentials.json' ]); }); -test('does not contain uploading packages', () => { +test.serial('does not contain uploading packages', () => { [ '"gulp-awspublish"', '"concurrent-transform"', @@ -36,6 +36,6 @@ test('does not contain uploading packages', () => { }); }); -test('does not contain deploy task', () => { +test.serial('does not contain deploy task', () => { assert.noFileContent('gulpfile.js', 'gulp.task(\'deploy\''); }); diff --git a/test/uploading/rsync.js b/test/uploading/rsync.js index 2c61034..b683e0b 100644 --- a/test/uploading/rsync.js +++ b/test/uploading/rsync.js @@ -10,19 +10,19 @@ test.before(() => { .toPromise(); }); -test('creates gulpfile', () => { +test.serial('creates gulpfile', () => { assert.file('gulpfile.js'); }); -test('creates package.json file', () => { +test.serial('creates package.json file', () => { assert.file('package.json'); }); -test('contain correct uploading packages', () => { +test.serial('contain correct uploading packages', () => { assert.fileContent('package.json', '"gulp-rsync": "^0.0.5"'); }); -test('does not contain wrong uploading packages', () => { +test.serial('does not contain wrong uploading packages', () => { [ '"gulp-awspublish"', '"concurrent-transform"', @@ -32,18 +32,18 @@ test('does not contain wrong uploading packages', () => { }); }); -test('contains deploy function', () => { +test.serial('contains deploy function', () => { assert.fileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your Rsync credentials file and incrementally'); assert.fileContent('gulpfile.js', '// uploads your site to your server'); assert.fileContent('gulpfile.js', 'gulp.task(\'deploy\''); }); -test('does not contain the wrong uploading task', () => { +test.serial('does not contain the wrong uploading task', () => { assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- reads from your AWS Credentials file, creates the correct'); assert.noFileContent('gulpfile.js', '// headers for your files and uploads them to S3'); assert.noFileContent('gulpfile.js', '// \'gulp deploy\' -- pushes your dist folder to Github'); }); -test('creates credentials file', () => { +test.serial('creates credentials file', () => { assert.file('rsync-credentials.json'); });