You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
463 B
21 lines
463 B
const createTestCafe = require('testcafe');
|
|
|
|
let testcafe;
|
|
let runner;
|
|
let failedCount;
|
|
|
|
|
|
createTestCafe().then((tc) => {
|
|
testcafe = tc;
|
|
runner = tc.createRunner();
|
|
return runner
|
|
.src('./tests/Sortable.test.js')
|
|
.browsers('chrome:headless')
|
|
.concurrency(3)
|
|
.run();
|
|
}).then((actualFailedCount) => {
|
|
failedCount = actualFailedCount;
|
|
console.log('FAILED COUNT', actualFailedCount)
|
|
return testcafe.close();
|
|
}).then(() => process.exit(failedCount));
|
|
|
|
|