Permalink
Browse files

Jasmine needs to be listed as a framework

karma conf is now exported functions

how embarrassing - now it really should work

need ng-scenario for e2e tests

need karma-junit-reporter

trying without jasmine

trying some other plugins

adding jasmine in

I will stab someone

ng-scenario is probably needed

trying adding karma-ng-scenario

need a package.json to specify dev deps

normalise quotes
  • Loading branch information...
1 parent c7ea21d commit 16fc9a21550c95e0fa6df958530841f8ba7f7343 @michaelneale michaelneale committed Aug 20, 2013
Showing with 69 additions and 32 deletions.
  1. +31 −16 config/karma-e2e.conf.js
  2. +27 −16 config/karma.conf.js
  3. +11 −0 package.json
View
@@ -1,22 +1,37 @@
-basePath = '../';
+module.exports = function(config){
+ config.set({
-files = [
- ANGULAR_SCENARIO,
- ANGULAR_SCENARIO_ADAPTER,
- 'test/e2e/**/*.js'
-];
-autoWatch = false;
+ basePath : '../',
-browsers = ['Chrome'];
+ files : [
+ 'test/e2e/**/*.js'
+ ],
-singleRun = true;
+ autoWatch : false,
-proxies = {
- '/': 'http://localhost:8000/'
-};
+ browsers : ['Chrome'],
+
+ frameworks: ['ng-scenario'],
+
+ singleRun : true,
+
+ proxies : {
+ '/': 'http://localhost:8000/'
+ },
+
+ plugins : [
+ 'karma-junit-reporter',
+ 'karma-chrome-launcher',
+ 'karma-firefox-launcher',
+ 'karma-jasmine',
+ 'karma-ng-scenario'
+ ],
+
+ junitReporter : {
+ outputFile: 'test_out/e2e.xml',
+ suite: 'e2e'
+ }
+
+})}
-junitReporter = {
- outputFile: 'test_out/e2e.xml',
- suite: 'e2e'
-};
View
@@ -1,20 +1,31 @@
-basePath = '../';
+module.exports = function(config){
+ config.set({
+ basePath : '../',
-files = [
- JASMINE,
- JASMINE_ADAPTER,
- 'app/lib/angular/angular.js',
- 'app/lib/angular/angular-*.js',
- 'test/lib/angular/angular-mocks.js',
- 'app/js/**/*.js',
- 'test/unit/**/*.js'
-];
+ 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;
+ autoWatch : true,
-browsers = ['Chrome'];
+ frameworks: ['jasmine'],
-junitReporter = {
- outputFile: 'test_out/unit.xml',
- suite: 'unit'
-};
+ browsers : ['Chrome'],
+
+ plugins : [
+ 'karma-junit-reporter',
+ 'karma-chrome-launcher',
+ 'karma-firefox-launcher',
+ 'karma-jasmine'
+ ],
+
+ junitReporter : {
+ outputFile: 'test_out/unit.xml',
+ suite: 'unit'
+ }
+
+})}
View
@@ -0,0 +1,11 @@
+{
+ "name": "angualrjs-seed",
+ "description": "A starter project for angular js",
+ "devDependencies": {
+ "phantomjs" : "*",
+ "karma" : "*",
+ "karma-junit-reporter" : "*",
+ "karma-jasmine" : "*",
+ "karma-ng-scenario" : "*"
+ }
+}

4 comments on commit 16fc9a2

Don' work .. i'v this error :

Error: No provider for "framework:ng-scenario"! (Resolving: framework:ng-scenario)

Contributor

michaelneale replied Sep 5, 2013

Try this:

npm install -g phantomjs
npm install -g karma
npm install -g karma-junit-reporter
npm install -g karma-jasmine
npm install -g karma-ng-scenario

Does that make it work for you?

Contributor

michaelneale replied Sep 5, 2013

Please sign in to comment.