2016-01-08 01:33:58 +03:00
|
|
|
const webpack = require("./webpack.config");
|
|
|
|
const path = require("path");
|
2015-08-14 07:12:06 +03:00
|
|
|
|
2016-01-07 19:51:20 +03:00
|
|
|
module.exports = function (config) {
|
2015-08-14 07:12:06 +03:00
|
|
|
config.set({
|
2016-01-07 19:51:20 +03:00
|
|
|
singleRun: true,
|
2016-01-08 01:33:58 +03:00
|
|
|
browsers: ["FirefoxNightly"],
|
|
|
|
frameworks: ["mocha"],
|
2016-01-11 21:10:38 +03:00
|
|
|
reporters: ["mocha", "coverage"],
|
2016-01-08 01:33:58 +03:00
|
|
|
coverageReporter: {
|
|
|
|
dir: "logs/reports/coverage",
|
|
|
|
reporters: [
|
|
|
|
{
|
|
|
|
type: "lcov",
|
|
|
|
subdir: "lcov"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "html",
|
|
|
|
subdir: "html"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "text",
|
|
|
|
subdir: ".",
|
|
|
|
file: "text.txt"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
type: "text-summary",
|
|
|
|
subdir: ".",
|
|
|
|
file: "text-summary.txt"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2016-01-07 19:51:20 +03:00
|
|
|
files: [
|
2016-01-08 01:33:58 +03:00
|
|
|
"tests/index.js"
|
2015-08-14 07:12:06 +03:00
|
|
|
],
|
|
|
|
preprocessors: {
|
2016-01-08 01:33:58 +03:00
|
|
|
"tests/**/*.js": ["webpack", "sourcemap"]
|
2015-08-18 00:17:29 +03:00
|
|
|
},
|
2016-01-07 19:51:20 +03:00
|
|
|
webpack: {
|
2016-01-08 01:33:58 +03:00
|
|
|
devtool: "inline-source-map",
|
2016-01-07 19:51:20 +03:00
|
|
|
resolve: webpack.resolve,
|
|
|
|
module: {
|
2016-01-08 01:33:58 +03:00
|
|
|
loaders: webpack.module.loaders,
|
|
|
|
postLoaders: [{
|
|
|
|
test: /\.js$/,
|
|
|
|
loader: 'istanbul-instrumenter',
|
|
|
|
include: [path.join(__dirname, '/src')]
|
|
|
|
}]
|
|
|
|
},
|
|
|
|
plugins: webpack.plugins
|
2015-09-22 04:15:50 +03:00
|
|
|
},
|
2016-01-07 19:51:20 +03:00
|
|
|
webpackMiddleware: {
|
|
|
|
noInfo: true
|
|
|
|
}
|
2015-08-14 23:02:38 +03:00
|
|
|
});
|
|
|
|
};
|