-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adapted Karma configuration in karma.conf.js, to follow the latest up…
…dated syntax.
- Loading branch information
Showing
1 changed file
with
72 additions
and
90 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,81 @@ | ||
/* | ||
* Karma configuration. | ||
* Karma configuration. Generated on Wed Oct 09 2013 12:04:13 GMT+0200 (CEST) | ||
* | ||
* @author Aki Karkkainen | ||
* @author Aki Karkkainen (edits) | ||
* @url https://github.com/akikoo/grunt-frontend-workflow | ||
* Twitter: http://twitter.com/akikoo | ||
* | ||
* See https://github.com/kjbekkelund/karma-requirejs | ||
* See http://karma-runner.github.io/0.8/plus/RequireJS.html | ||
*/ | ||
|
||
// base path, that will be used to resolve files and exclude | ||
basePath = ''; | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files = [ | ||
|
||
// Adapters | ||
JASMINE, | ||
JASMINE_ADAPTER, | ||
REQUIRE, | ||
REQUIRE_ADAPTER, | ||
|
||
// Which files do you want to test? | ||
// | ||
// Choose all the files we want to load with Require.js. | ||
{pattern: 'www/js/lib/**/*.js', included: false}, // All external libraries. | ||
{pattern: 'www/js/app/**/*.js', included: false}, // Our source code. | ||
{pattern: 'test/spec/*Spec.js', included: false}, // All the tests. | ||
|
||
// Which files do you want to include with <script> tag? | ||
// | ||
// Choose all files which are not loaded by Require.js. | ||
// Usually you'll only need to include your test-main.js file, | ||
// which has the same role for your tests as main.js has for | ||
// your app when using Require.js. | ||
'test/test-main.js' | ||
]; | ||
|
||
|
||
|
||
// list of files to exclude | ||
// We don't want to actually start the application in our tests. | ||
exclude = [ | ||
'www/js/app/mainpage.js', | ||
'www/js/app/subpage.js' | ||
]; | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress', 'junit' | ||
reporters = ['dots']; | ||
|
||
|
||
// web server port | ||
port = 9876; | ||
|
||
|
||
// cli runner port | ||
runnerPort = 9100; | ||
|
||
|
||
// enable / disable colors in the output (reporters and logs) | ||
colors = true; | ||
|
||
|
||
// level of logging | ||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG | ||
logLevel = LOG_INFO; | ||
|
||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
autoWatch = false; | ||
|
||
|
||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera | ||
// - Safari (only Mac) | ||
// - PhantomJS | ||
// - IE (only Windows) | ||
browsers = [ | ||
// 'Chrome', | ||
// 'PhantomJS' | ||
// 'Safari', | ||
'Firefox' | ||
]; | ||
|
||
|
||
// If browser does not capture in given timeout [ms], kill it | ||
captureTimeout = 60000; | ||
|
||
|
||
// Continuous Integration mode | ||
// if true, it capture browsers, run tests and exit | ||
singleRun = false; | ||
module.exports = function (config) { | ||
|
||
config.set({ | ||
|
||
// Base path, that will be used to resolve files and exclude. | ||
basePath: '', | ||
|
||
// Frameworks to use. | ||
frameworks: ['jasmine', 'requirejs'], | ||
|
||
// list of files / patterns to load in the browser. | ||
files: [ | ||
// Which files do you want to test? | ||
// | ||
// Choose all the files we want to load with Require.js. | ||
{pattern: 'www/js/lib/**/*.js', included: false}, // All external libraries. | ||
{pattern: 'www/js/app/**/*.js', included: false}, // Our source code. | ||
{pattern: 'test/spec/*Spec.js', included: false}, // All the tests. | ||
|
||
// Which files do you want to include with <script> tag? | ||
// | ||
// Choose all files which are not loaded by Require.js. | ||
// Usually you'll only need to include your test-main.js file, | ||
// which has the same role for your tests as main.js has for | ||
// your app when using Require.js. | ||
'test/test-main.js' | ||
], | ||
|
||
// List of files to exclude. | ||
// We don't want to actually start the application in our tests. | ||
exclude: [ | ||
'www/js/app/mainpage.js', | ||
'www/js/app/subpage.js' | ||
], | ||
|
||
// Test results reporter to use. | ||
// Possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | ||
reporters: ['progress'], | ||
|
||
// 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: false, | ||
|
||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera | ||
// - Safari (only Mac) | ||
// - PhantomJS | ||
// - IE (only Windows) | ||
browsers: ['Firefox'], | ||
|
||
// If browser does not capture in given timeout [ms], kill it. | ||
captureTimeout: 60000, | ||
|
||
// Continuous Integration mode. | ||
// if true, it capture browsers, run tests and exit. | ||
singleRun: false | ||
}); | ||
}; |