glob()

in lib/testrunner.js [27:42]


    glob('**/**.test.js', { cwd: testsRoot }, function (error, files) {
        if (error) {
            return clb(error);
        }
        try {
            // Fill into Mocha
            files.forEach(function (f) { return mocha.addFile(paths.join(testsRoot, f)); });
            // Run the tests
            mocha.run(function (failures) {
                clb(null, failures);
            });
        }
        catch (error) {
            return clb(error);
        }
    });