Skip to content

Commit

Permalink
feat(testing): add karm browser launchers for chrome, firefox, ie and…
Browse files Browse the repository at this point in the history
… safari
  • Loading branch information
jyounce committed Jul 15, 2015
1 parent 725b960 commit f9dcc90
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 4 additions & 0 deletions package.json
Expand Up @@ -56,7 +56,11 @@
"jasmine-core": "~2.3.4", "jasmine-core": "~2.3.4",
"karma": "~0.12.37", "karma": "~0.12.37",
"karma-jasmine": "~0.3.6", "karma-jasmine": "~0.3.6",
"karma-chrome-launcher": "~0.2.0",
"karma-firefox-launcher": "~0.1.6",
"karma-ie-launcher": "~0.2.0",
"karma-phantomjs-launcher": "~0.2.0", "karma-phantomjs-launcher": "~0.2.0",
"karma-safari-launcher": "~0.1.1",
"less-imports": "~1.1.0", "less-imports": "~1.1.0",
"mkdirp": "~0.5.1", "mkdirp": "~0.5.1",
"open": "~0.0.5", "open": "~0.0.5",
Expand Down
2 changes: 1 addition & 1 deletion tasks/test/run-tests.coffee
Expand Up @@ -11,7 +11,7 @@ module.exports = (gulp, config) ->
# ============= # =============
gulp.task "#{config.rb.prefix.task}run-tests", -> gulp.task "#{config.rb.prefix.task}run-tests", ->
defer = q.defer() defer = q.defer()
karma.start opts, (exitCode, x) -> karma.start opts, (exitCode) ->
console.log "Karma has exited with #{exitCode}." console.log "Karma has exited with #{exitCode}."
defer.resolve() defer.resolve()
process.exit exitCode process.exit exitCode
Expand Down
3 changes: 1 addition & 2 deletions tasks/test/test-config.coffee
Expand Up @@ -13,7 +13,6 @@ module.exports = (config) ->
rbConfig.glob.dist.rb.client.test.js rbConfig.glob.dist.rb.client.test.js
rbConfig.glob.dist.app.client.test.js rbConfig.glob.dist.app.client.test.js
) )
# console.log scripts
scripts scripts


# return # return
Expand All @@ -23,5 +22,5 @@ module.exports = (config) ->
basePath: rbConfig.app.dir basePath: rbConfig.app.dir
files: getScripts 'files.json' files: getScripts 'files.json'
frameworks: ['jasmine'] frameworks: ['jasmine']
browsers: ['PhantomJS'] browsers: ['PhantomJS'] # 'Chrome', 'Firefox', 'IE', 'Safari'
singleRun: true singleRun: true

0 comments on commit f9dcc90

Please sign in to comment.