Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f132455
commit 0e518b0
Showing
6 changed files
with
93 additions
and
105 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,94 +1,73 @@ | ||
// Sample Testacular configuration file, that contain pretty much all the available options | ||
// It's used for running client tests on Travis (http://travis-ci.org/#!/vojtajina/testacular) | ||
// Most of the options can be overriden by cli arguments (see testacular --help) | ||
// | ||
// For all available config options and default values, see: | ||
// https://github.com/vojtajina/testacular/blob/stable/lib/config.js#L54 | ||
|
||
|
||
// base path, that will be used to resolve files and exclude | ||
basePath = '.'; | ||
|
||
frameworks = ['jasmine']; | ||
|
||
// list of files / patterns to load in the browser | ||
files = [ | ||
JASMINE, | ||
JASMINE_ADAPTER, | ||
'node_modules/chai/chai.js', | ||
'test/ext/test-loader.js', | ||
'test/ext/grey.js', | ||
'dist/caman.full.js', | ||
'test/unit/*.coffee' | ||
]; | ||
|
||
// list of files to exclude | ||
exclude = []; | ||
|
||
// use dots reporter, as travis terminal does not support escaping sequences | ||
// possible values: 'dots', 'progress', 'junit', 'teamcity' | ||
// CLI --reporters progress | ||
reporters = ['progress']; | ||
|
||
// web server port | ||
// CLI --port 9876 | ||
port = 9876; | ||
|
||
// cli runner port | ||
// CLI --runner-port 9100 | ||
runnerPort = 9100; | ||
|
||
// enable / disable colors in the output (reporters and logs) | ||
// CLI --colors --no-colors | ||
colors = true; | ||
|
||
// level of logging | ||
// possible values: LOG_DISABLE || LOG_ERROR || LOG_WARN || LOG_INFO || LOG_DEBUG | ||
// CLI --log-level debug | ||
logLevel = LOG_INFO; | ||
|
||
// enable / disable watching file and executing tests whenever any file changes | ||
// CLI --auto-watch --no-auto-watch | ||
autoWatch = true; | ||
|
||
// Start these browsers, currently available: | ||
// - Chrome | ||
// - ChromeCanary | ||
// - Firefox | ||
// - Opera | ||
// - Safari (only Mac) | ||
// - PhantomJS | ||
// - IE (only Windows) | ||
// CLI --browsers Chrome,Firefox,Safari | ||
browsers = ['Firefox']; | ||
|
||
if (!process.env.TRAVISCI) { | ||
browsers.push('Chrome') | ||
|
||
if (require('os').platform() === 'darwin') { | ||
browsers.push('Safari') | ||
} | ||
} | ||
|
||
// If browser does not capture in given timeout [ms], kill it | ||
// CLI --capture-timeout 5000 | ||
captureTimeout = 5000; | ||
|
||
// Auto run tests on start (when browsers are captured) and exit | ||
// CLI --single-run --no-single-run | ||
singleRun = false; | ||
|
||
// report which specs are slower than 500ms | ||
// CLI --report-slower-than 500 | ||
reportSlowerThan = 500; | ||
|
||
// compile coffee scripts | ||
preprocessors = { | ||
'**/*.coffee': 'coffee' | ||
}; | ||
// Karma configuration | ||
// Generated on Tue Nov 12 2013 23:31:59 GMT-0500 (EST) | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
|
||
// base path, that will be used to resolve files and exclude | ||
basePath: '', | ||
|
||
|
||
// frameworks to use | ||
frameworks: ['mocha'], | ||
|
||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
'node_modules/chai/chai.js', | ||
'test/ext/test-loader.js', | ||
'test/ext/grey.js', | ||
'dist/caman.full.js', | ||
'test/unit/*.coffee', | ||
{pattern: 'test/ext/grey.png', watched: false, included: false} | ||
], | ||
|
||
|
||
// list of files to exclude | ||
exclude: [ | ||
|
||
], | ||
|
||
|
||
// test results reporter to use | ||
// possible values: 'dots', 'progress', 'junit', 'growl', 'coverage' | ||
reporters: ['progress'], | ||
|
||
|
||
// web server port | ||
port: 9876, | ||
|
||
plugins = [ | ||
'testacular-jasmine', | ||
'testacular-chrome-launcher', | ||
'testacular-firefox-launcher' | ||
]; | ||
|
||
// 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 (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`) | ||
browsers: ['Chrome', '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: true | ||
}); | ||
}; |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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