diff options
author | Mario <mario@mariovavti.com> | 2021-08-03 07:12:36 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-08-03 07:12:36 +0000 |
commit | 08f70c49f8a43cf806f8ca28e9b6c3b7823522b4 (patch) | |
tree | f24595d659adbb7d1e5d2e8e6dcd829b093887bb /library/Sortable/scripts/test.js | |
parent | 571bae9d1c07bb08270163a314c91c138b42e62f (diff) | |
parent | cddc0217724f1a7661014d50e4c940e623a0c2dc (diff) | |
download | volse-hubzilla-08f70c49f8a43cf806f8ca28e9b6c3b7823522b4.tar.gz volse-hubzilla-08f70c49f8a43cf806f8ca28e9b6c3b7823522b4.tar.bz2 volse-hubzilla-08f70c49f8a43cf806f8ca28e9b6c3b7823522b4.zip |
Merge branch 'app-bin-ng' into 'dev'
Apps drag and drop feature
See merge request hubzilla/core!1982
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)); + |