"use strict";

let qUnit = require("qunit");
qUnit.setup({
    log: {
        errors: true,
        tests: true,
        globalSummary: true,
        testing: true
    },
    maxBlockDuration: 2000
});

// one code and tests file
qUnit.run({
    code: "test/adapter/qunit.js",
    tests: "test/tick-generator.js"
}, err => {
    if (err) {
        console.log(err);
    }
});

"use strict";

const fs = require("fs");

let qUnit = require("qunit");
qUnit.setup({
    log: {
        errors: true,
        tests: true,
        globalSummary: true,
        testing: true
    },
    maxBlockDuration: 2000
});

qUnit.run(fs.readdirSync("test")
    .filter(name => -1 === ["adapter", "qunit.js"].indexOf(name))
    .map(name => {
        return {
            code: "test/adapter/qunit.js",
            tests: "test/" + name
        };
    }), err => {
        if (err) {
            console.log(err);
        }
    });

Read test folder to get files
Read test folder to get files
