mirror of
https://github.com/zhigang1992/reactfire.git
synced 2026-04-22 11:17:10 +08:00
Cleaned up karma configuration files
This commit is contained in:
@@ -39,10 +39,7 @@ var paths = {
|
||||
},
|
||||
|
||||
tests: {
|
||||
configs: {
|
||||
local: "tests/karma.conf.js",
|
||||
travis: "tests/karma-travis.conf.js"
|
||||
},
|
||||
config: "tests/karma.conf.js",
|
||||
files: [
|
||||
"bower_components/firebase/firebase.js",
|
||||
"tests/phantomjs-es5-shim.js",
|
||||
@@ -97,10 +94,10 @@ gulp.task("scripts", function() {
|
||||
|
||||
/* Uses the Karma test runner to run the Jasmine tests */
|
||||
gulp.task("test", function() {
|
||||
var configFile = travis ? paths.tests.configs.travis : paths.tests.configs.local;
|
||||
return gulp.src(paths.tests.files)
|
||||
.pipe(karma({
|
||||
configFile: configFile,
|
||||
configFile: paths.tests.config,
|
||||
browsers: travis ? ["Firefox"] : ["Chrome"],
|
||||
action: "run"
|
||||
}))
|
||||
.on("error", function(error) {
|
||||
|
||||
@@ -1,26 +0,0 @@
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ["jasmine"],
|
||||
browsers: ["Firefox"],
|
||||
autowatch: false,
|
||||
singleRun: true,
|
||||
|
||||
preprocessors: {
|
||||
"../src/*.js": "coverage"
|
||||
},
|
||||
|
||||
reporters: ["spec", "failed", "coverage"],
|
||||
coverageReporter: {
|
||||
reporters: [
|
||||
{
|
||||
type: "lcovonly",
|
||||
dir: "coverage",
|
||||
subdir: "."
|
||||
},
|
||||
{
|
||||
type: "text-summary"
|
||||
}
|
||||
]
|
||||
},
|
||||
});
|
||||
};
|
||||
@@ -1,7 +1,6 @@
|
||||
module.exports = function(config) {
|
||||
config.set({
|
||||
frameworks: ["jasmine"],
|
||||
browsers: ["Chrome"],
|
||||
autowatch: false,
|
||||
singleRun: true,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user