2019-01-04 13:14:02 +01:00
|
|
|
/* eslint no-console: 0 */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Node API Test Runner
|
|
|
|
*
|
|
|
|
* @author d98762625 [d98762625@gmail.com]
|
|
|
|
* @author tlwr [toby@toby.codes]
|
|
|
|
* @author n1474335 [n1474335@gmail.com]
|
|
|
|
* @copyright Crown Copyright 2018
|
|
|
|
* @license Apache-2.0
|
|
|
|
*/
|
|
|
|
|
|
|
|
import {
|
|
|
|
setLongTestFailure,
|
|
|
|
logTestReport,
|
|
|
|
} from "../lib/utils";
|
|
|
|
|
2019-07-09 13:23:59 +02:00
|
|
|
import TestRegister from "../lib/TestRegister.mjs";
|
2019-01-04 13:14:02 +01:00
|
|
|
import "./tests/nodeApi";
|
2019-03-20 17:34:20 +01:00
|
|
|
import "./tests/operations";
|
2019-03-14 18:54:06 +01:00
|
|
|
import "./tests/File";
|
2019-04-24 09:44:59 +02:00
|
|
|
import "./tests/NodeDish";
|
2019-01-04 13:14:02 +01:00
|
|
|
|
|
|
|
const testStatus = {
|
|
|
|
allTestsPassing: true,
|
|
|
|
counts: {
|
|
|
|
total: 0,
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
setLongTestFailure();
|
|
|
|
|
|
|
|
const logOpsTestReport = logTestReport.bind(null, testStatus);
|
|
|
|
|
|
|
|
TestRegister.runApiTests()
|
|
|
|
.then(logOpsTestReport);
|
|
|
|
|