diff options
Diffstat (limited to 'library/Sortable/scripts/test.js')
-rw-r--r-- | library/Sortable/scripts/test.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/library/Sortable/scripts/test.js b/library/Sortable/scripts/test.js new file mode 100644 index 000000000..6c62b75ad --- /dev/null +++ b/library/Sortable/scripts/test.js @@ -0,0 +1,21 @@ +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)); + |