UNPKG

gpii-universal

Version:

Cross platform, core components of the GPII personalization infrastructure.

76 lines (66 loc) 2.31 kB
/* A Testem configuration file that extends gpii.testem. This is specific to this package, to work around limitations in dealing with `node_modules` subdirectories with Istanbul, we have to: 1. Use our own (pretest) steps to instrument all required code. 2. Handcraft our testemOptions.routes 3. Avoid using the normal "generated options merging" from gpii.testem. */ "use strict"; var fluid = require("infusion"); var gpii = fluid.registerNamespace("gpii"); require("../"); fluid.require("%gpii-testem"); fluid.registerNamespace("gpii.tests.universal.testem"); gpii.tests.universal.testem.getTestemOptions = function (that) { return that.options.testemOptions; }; fluid.defaults("gpii.tests.universal.testem", { gradeNames: ["gpii.testem.instrumentation"], testPages: ["tests/web/html/all-tests.html"], coverageDir: "coverage", reportsDir: "reports", instrumentationOptions: { "excludes": [], "sources": ["./**/*.js"], "nonSources": [ "./*.json", "./**/*.json", "./*.html", "./**/*.html", "./**/*Tests.js", "./**/*TestEnv.js", "./**/*TestsUtils.js", "./scripts/*.js", "./testData/**/*.js", "./tests/**", "./!(node_modules)/**/*.!(js)", "./!(node_modules)/*.!(js)", "./!(node_modules)/tests/**/*.js", "./!(node_modules)/**/tests/**/*.js", "./!(node_modules)/test/**/*.js", "./!(node_modules)/**/test/**/*.js", "./!(node_modules)/**/webTests/**/*.js", "./!(node_modules)/**/public/lib/**/*" ] }, sourceDirs: { gpii: "%gpii-universal/gpii" }, contentDirs: { browserify: "%gpii-universal/browserify", node_modules: "%gpii-universal/node_modules", testData: "%gpii-universal/testData" }, invokers: { "getTestemOptions": { funcName: "gpii.tests.universal.testem.getTestemOptions", args: ["{that}"] } }, testemOptions: { tap_quiet_logs: true, disable_watching: true, skip: "PhantomJS,Opera,Safari,IE" } }); module.exports = gpii.tests.universal.testem().getTestemOptions();