This repository has been archived by the owner on Jan 3, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into greenkeeper/typescript-2.2.2
- Loading branch information
Showing
8 changed files
with
85 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = { | ||
dependencies: [] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const {skip, test} = require('../dist/index'); | ||
|
||
test('foo'); | ||
|
||
skip('bar', t => { | ||
// ... | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,6 +43,7 @@ | |
"dist/config.js", | ||
"dist/index.js", | ||
"example/**", | ||
"fixtures/**", | ||
"wallaby.js" | ||
], | ||
"reporter": [ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import test from 'ava'; | ||
import {execFile} from 'child_process'; | ||
import {join} from 'path'; | ||
|
||
interface Result { | ||
readonly error: Error | null; | ||
readonly stdout: string; | ||
readonly stderr: string; | ||
} | ||
|
||
let result: Result; | ||
|
||
test.cb.before(t => { | ||
execFile(process.execPath, [ | ||
join(__dirname, '../index.js'), 'test-config.js' | ||
], {cwd: join(__dirname, '../../fixtures')}, (error, stdout, stderr) => { | ||
result = {error, stdout, stderr}; | ||
|
||
t.end(); | ||
}); | ||
}); | ||
|
||
test('`error` should be null', t => { | ||
t.plan(1); | ||
|
||
t.is(result.error, null); | ||
}); | ||
|
||
test('`stdout` should contain a test marked as TODO', t => { | ||
t.plan(1); | ||
|
||
t.regex(result.stdout, /ok 1 - foo # TODO/); | ||
}); | ||
|
||
test('`stdout` should contain a test marked as SKIP', t => { | ||
t.plan(1); | ||
|
||
t.regex(result.stdout, /ok 2 - bar # SKIP/); | ||
}); | ||
|
||
test('`stderr` should contain a copy of the configuration', t => { | ||
t.regex(result.stderr, /capabilities: \{ browserName: 'chrome' \}/); | ||
t.regex(result.stderr, /concurrency: 1/); | ||
t.regex(result.stderr, /dependencies: \[\]/); | ||
t.regex(result.stderr, /exclude: \[ '\*\*\/node_modules\/\*\*\/\*' \]/); | ||
t.regex(result.stderr, /include: '\*\*\/\*\.e2e\.js'/); | ||
t.regex(result.stderr, /stepTimeout: 10000/); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,7 @@ | |
"coverage", | ||
"dist", | ||
"example", | ||
"fixtures", | ||
"node_modules" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters