forked from kuhnza/angular-google-places-autocomplete
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup more karma test configs in grunt
Added a continuous karma testing config which will reload the test each time a file is changed. A release config was also added which will run each test within `PhantomJS`, `Chrome` and `Firefox`. A `jasmine` support directory was initialised with the `spec` directory replacing the previous `test` directory. This was generated from initialising `jasmine`.
- Loading branch information
Josh Leeb-du Toit
committed
Aug 22, 2015
1 parent
9f0980c
commit 083ab20
Showing
5 changed files
with
38 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,18 @@ | ||
/* | ||
* angular-google-places-autocomplete | ||
* | ||
* Copyright (c) 2014 "kuhnza" David Kuhn | ||
* Licensed under the MIT license. | ||
* https://github.com/kuhnza/angular-google-places-autocomplete/blob/master/LICENSE | ||
*/ | ||
|
||
'use strict'; | ||
|
||
module.exports = function (config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['jasmine'], | ||
logLevel: 'INFO', | ||
browsers: ['PhantomJS'], | ||
autoWatch: true, | ||
reporters: ['progress', 'coverage'], | ||
files: [ | ||
'https://maps.googleapis.com/maps/api/js?libraries=places', | ||
'bower_components/angular/angular.js', | ||
'bower_components/angular-mocks/angular-mocks.js', | ||
'src/**/*.js', | ||
'test/**/*.js' | ||
], | ||
preprocessors: { | ||
'src/**/*.js': 'coverage' | ||
}, | ||
coverageReporter: { | ||
type: 'html', | ||
dir: 'coverage/' | ||
} | ||
}); | ||
module.exports = function(config) { | ||
config.set({ | ||
basePath: '', | ||
frameworks: ['jasmine'], | ||
files: [ | ||
'bower_components/angular/angular.js', | ||
'bower_components/angular-mocks/angular-mocks.js', | ||
'src/**/*.js', | ||
'spec/**/*.js' | ||
], | ||
exclude: [], | ||
preprocessors: {}, | ||
reporters: ['mocha'], | ||
port: 9876, | ||
colors: true, | ||
logLevel: config.LOG_INFO, | ||
}); | ||
}; |
This file contains 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
File renamed without changes.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"spec_dir": "spec", | ||
"spec_files": [ | ||
"**/*[sS]pec.js" | ||
], | ||
"helpers": [ | ||
"helpers/**/*.js" | ||
] | ||
} |