Skip to content

Commit

Permalink
style(init): reformat the config templates
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtajina committed Dec 8, 2013
1 parent 29f5cf2 commit b500f94
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 29 deletions.
35 changes: 21 additions & 14 deletions config.tpl.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,21 @@
module.exports = (config) ->
config.set

# base path, that will be used to resolve all patterns, eg. files, exclude
# base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '%BASE_PATH%'


# frameworks to use
# available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: [%FRAMEWORKS%]


# list of files / patterns to load in the browser
files: [
%FILES%
]


# list of files to exclude
exclude: [
%EXCLUDE%
Expand All @@ -27,35 +31,38 @@ module.exports = (config) ->


# test results reporter to use
# possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
# possible values: 'dots', 'progress'
# available reporters: https://npmjs.org/browse/keyword/karma-reporter
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
# 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: %AUTO_WATCH%

# Start these browsers, currently available:
# - Chrome
# - ChromeCanary
# - Firefox
# - Opera (has to be installed with `npm install karma-opera-launcher`)
# - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
# - PhantomJS
# - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)

# satart these browsers
# available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [%BROWSERS%]

# 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
# if true, Karma captures browsers, runs the tests and exits
singleRun: false
22 changes: 7 additions & 15 deletions config.tpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@
module.exports = function(config) {
config.set({

// base path, that will be used to resolve files and exclude
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: '%BASE_PATH%',


// frameworks to use
// available frameworks: https://npmjs.org/browse/keyword/karma-adapter
frameworks: [%FRAMEWORKS%],


Expand All @@ -30,7 +31,8 @@ module.exports = function(config) {


// test results reporter to use
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage'
// possible values: 'dots', 'progress'
// available reporters: https://npmjs.org/browse/keyword/karma-reporter
reporters: ['progress'],


Expand All @@ -51,23 +53,13 @@ module.exports = function(config) {
autoWatch: %AUTO_WATCH%,


// Start these browsers, currently available:
// - Chrome
// - ChromeCanary
// - Firefox
// - Opera (has to be installed with `npm install karma-opera-launcher`)
// - Safari (only Mac; has to be installed with `npm install karma-safari-launcher`)
// - PhantomJS
// - IE (only Windows; has to be installed with `npm install karma-ie-launcher`)
// start these browsers
// available browser launchers: https://npmjs.org/browse/keyword/karma-launcher
browsers: [%BROWSERS%],


// 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
// if true, Karma captures browsers, runs the tests and exits
singleRun: false
});
};

0 comments on commit b500f94

Please sign in to comment.