-
Notifications
You must be signed in to change notification settings - Fork 126
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/dev/master'
- Loading branch information
Showing
11 changed files
with
129 additions
and
92 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
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,2 +1,3 @@ | ||
/bootstrap.php.cache | ||
/phpunit.xml | ||
/karma.conf.js |
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 |
---|---|---|
@@ -0,0 +1,95 @@ | ||
/* global module, config */ | ||
module.exports = function(config) { | ||
'use strict'; | ||
|
||
config.set({ | ||
// base path, that will be used to resolve files and exclude | ||
basePath: '../', | ||
|
||
frameworks: ['jasmine', 'requirejs-exposure', 'requirejs'], | ||
|
||
// list of files / patterns to load in the browser | ||
files: [ | ||
{pattern: 'web/bundles/**/*.js', included: false}, | ||
{pattern: 'src/*/src/*/Bundle/*Bundle/Tests/JS/**/*Spec.js', included: false}, | ||
|
||
'web/js/require-config.js', | ||
'src/Oro/src/Oro/Bundle/TestFrameworkBundle/Karma/main.js' | ||
], | ||
|
||
// list of files to exclude | ||
exclude: [ | ||
], | ||
|
||
preprocessors: { | ||
'web/bundles/*/js/**/*.js': ['requirejs-exposure', 'coverage'] | ||
}, | ||
|
||
// use dots reporter, as travis terminal does not support escaping sequences | ||
// possible values: 'dots', 'progress' | ||
// CLI --reporters progress | ||
reporters: ['progress', 'coverage', 'junit'], | ||
|
||
junitReporter: { | ||
// will be resolved to basePath (in the same way as files/exclude patterns) | ||
outputFile: 'build/logs/karma.xml' | ||
}, | ||
|
||
coverageReporter: { | ||
type: 'html', | ||
dir: 'build/logs/js-coverage/' | ||
}, | ||
|
||
// web server port | ||
// CLI --port 9876 | ||
port: 9876, | ||
|
||
// enable / disable colors in the output (reporters and logs) | ||
// CLI --colors --no-colors | ||
colors: true, | ||
|
||
// level of logging | ||
// possible values: config.LOG_DISABLE || config.LOG_ERROR || config.LOG_WARN || config.LOG_INFO || config.LOG_DEBUG | ||
// CLI --log-level debug | ||
logLevel: config.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: [process.env.TRAVIS ? 'Firefox' : 'Chrome'], | ||
browsers: ['PhantomJS'], | ||
|
||
// If browser does not capture in given timeout [ms], kill it | ||
// CLI --capture-timeout 5000 | ||
captureTimeout: 20000, | ||
|
||
// 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, | ||
|
||
plugins: [ | ||
'karma-requirejs', | ||
'karma-jasmine', | ||
'karma-junit-reporter', | ||
'karma-coverage', | ||
'karma-phantomjs-launcher', | ||
// 'karma-chrome-launcher', | ||
// 'karma-firefox-launcher', | ||
'karma-requirejs-exposure' | ||
] | ||
}); | ||
}; |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.