Created
December 17, 2014 10:00
-
-
Save vernak2539/0b726a674fba0360b42b to your computer and use it in GitHub Desktop.
Karma Problem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ karma start | |
INFO [karma]: Karma v0.12.28 server started at http://localhost:9876/ | |
INFO [launcher]: Starting browser PhantomJS | |
INFO [launcher]: Starting browser Chrome | |
WARN [launcher]: PhantomJS have not captured in 60000 ms, killing. | |
WARN [launcher]: Chrome have not captured in 60000 ms, killing. | |
WARN [launcher]: PhantomJS was not killed in 2000 ms, sending SIGKILL. | |
WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL. | |
INFO [launcher]: Trying to start PhantomJS again (1/2). | |
INFO [launcher]: Trying to start Chrome again (1/2). | |
INFO [Chrome 39.0.2171 (Windows 8.1)]: Connected on socket dULybTcUsRhhpRfTrDvJ with id 70944999 | |
INFO [PhantomJS 1.9.8 (Windows 8)]: Connected on socket 57PbV63Jbmu3tZtorDvI with id 87700976 | |
PhantomJS 1.9.8 (Windows 8): Executed 386 of 674 SUCCESS (0 secs / 3.566 secs) | |
PhantomJS 1.9.8 (Windows 8): Executed 674 of 674 SUCCESS (7.082 secs / 5.933 secs) | |
PhantomJS 1.9.8 (Windows 8): Executed 674 of 674 SUCCESS (7.082 secs / 5.933 secs) | |
Chrome 39.0.2171 (Windows 8.1): Executed 674 of 674 SUCCESS (5.421 secs / 4.999 secs) | |
TOTAL: 1348 SUCCESS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
karma: { | |
options: { | |
basePath: '', | |
frameworks: ['jasmine'], | |
files: FileFinder.generateList(globalConfig), | |
preprocessors: { | |
'./**/*.tpl.html' : 'ng-html2js', | |
'./App/**/!(*Tests).js': ['coverage'] | |
}, | |
ngHtml2JsPreprocessor: { | |
cacheIdFromPath: function(filepath) { | |
var cacheId = filepath.replace(/(.)*Web/g, ''); | |
return cacheId; | |
}, | |
moduleName: "templates" | |
}, | |
reporters: [process.env.reporter || 'progress', 'coverage' ], | |
browsers: ['PhantomJS'], | |
singleRun: process.env.singleRun || false | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Karma configuration | |
// Generated on Fri Dec 12 2014 14:07:26 GMT+0000 (GMT Standard Time) | |
var FileFinder = require('./Tooling/Utilities/file_finder'); | |
var globalConfig = require('./Tooling/Utilities/config'); | |
FileFinder.generateList(globalConfig); | |
module.exports = function(config) { | |
config.set({ | |
// base path that will be used to resolve all patterns (eg. files, exclude) | |
basePath: '', | |
// frameworks to use | |
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter | |
frameworks: ['jasmine'], | |
// list of files / patterns to load in the browser | |
files: FileFinder.generateList(globalConfig), | |
// list of files to exclude | |
exclude: [], | |
// preprocess matching files before serving them to the browser | |
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor | |
preprocessors: { | |
'./**/*.tpl.html' : 'ng-html2js', | |
'./App/**/!(*Tests).js': ['coverage'] | |
}, | |
ngHtml2JsPreprocessor: { | |
cacheIdFromPath: function(filepath) { | |
var cacheId = filepath.replace(/(.)*Web/g, ''); | |
return cacheId; | |
}, | |
moduleName: "templates" | |
}, | |
// test results reporter to use | |
// possible values: 'dots', 'progress' | |
// available reporters: https://npmjs.org/browse/keyword/karma-reporter | |
reporters: ['progress', 'coverage'], | |
// web server port | |
port: 9876, | |
// enable / disable colors in the output (reporters and logs) | |
colors: true, | |
// level of logging | |
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | |
logLevel: config.LOG_INFO, | |
// enable / disable watching file and executing tests whenever any file changes | |
autoWatch: true, | |
// start these browsers | |
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher | |
browsers: ['PhantomJS', 'Chrome'], | |
// Continuous Integration mode | |
// if true, Karma captures browsers, runs the tests and exits | |
singleRun: false | |
}); | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "name", | |
"version": "0.0.0", | |
"description": "test", | |
"devDependencies": { | |
"cheerio": "*", | |
"clean-css": "*", | |
"colors": "*", | |
"fs-extra": "*", | |
"glob": "^3.2.9", | |
"grunt": "^0.4.4", | |
"grunt-available-tasks": "*", | |
"grunt-cli": "^0.1.13", | |
"grunt-contrib-jshint": "^0.10.0", | |
"grunt-contrib-stylus": "^0.20.0", | |
"grunt-contrib-watch": "^0.6.1", | |
"grunt-jasmine-node": "*", | |
"grunt-karma": "^0.8.3", | |
"grunt-nunit-runner": "git://github.com/socialdotcom/grunt-nunit-runner.git#master", | |
"grunt-protractor-runner": "~1.1.4", | |
"grunt-shell": "*", | |
"jasmine-reporters": "^0.4.1", | |
"jshint": "*", | |
"jshint-stylish": "^0.1.5", | |
"karma": "^0.12.3", | |
"karma-chrome-launcher": "^0.1.3", | |
"karma-coverage": "^0.2.1", | |
"karma-jasmine": "^0.1.5", | |
"karma-ng-html2js-preprocessor": "^0.1.0", | |
"karma-phantomjs-launcher": "^0.1.4", | |
"karma-teamcity-reporter": "^0.1.2", | |
"line-reader": "*", | |
"load-grunt-tasks": "^0.4.0", | |
"lodash": "^2.4.1", | |
"mkdirp": "*", | |
"nib": "*", | |
"protractor": "~1.4.0", | |
"q": "^1.0.1", | |
"request": "^2.34.0", | |
"step": "*", | |
"stylus": "0.47.0", | |
"time-grunt": "*", | |
"uglify-js": "^2.4.13", | |
"underscore.string": "*", | |
"xml2js": "*" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment