Skip to content

Instantly share code, notes, and snippets.

@cdmatta
Created August 22, 2013 11:12
Show Gist options
  • Save cdmatta/6305949 to your computer and use it in GitHub Desktop.
Save cdmatta/6305949 to your computer and use it in GitHub Desktop.
Correct karma configurations for AngularJs tutorial hosted. Tutorial git -> https://github.com/angular/angular-phonecat/ file -> config/karma.conf.js
module.exports = function(config) {
config.set({
basePath : '../',
frameworks : ['ng-scenario'],
files : [
'test/e2e/**/*.js'
],
autoWatch : false,
singleRun : true,
browsers : ['Chrome'],
proxies : {
'/': 'http://localhost:8000/'
},
junitReporter : {
outputFile: 'test_out/e2e.xml',
suite: 'e2e'
},
});
};
module.exports = function(config) {
config.set({
basePath : '../',
frameworks : ['jasmine'],
files : [
'app/lib/angular/angular.js',
'app/lib/angular/angular-*.js',
'test/lib/angular/angular-mocks.js',
'app/js/**/*.js',
'test/unit/**/*.js'
],
autoWatch : true,
browsers : ['Chrome'],
junitReporter : {
outputFile : 'test_out/unit.xml',
suite : 'unit'
}
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment