Skip to content

Instantly share code, notes, and snippets.

@eddiemonge
Created September 18, 2014 22:46
Show Gist options
  • Save eddiemonge/7463c64768618afbfb27 to your computer and use it in GitHub Desktop.
Save eddiemonge/7463c64768618afbfb27 to your computer and use it in GitHub Desktop.
wiredep = require( 'wiredep' )
path = require 'path'
# Karma configuration
module.exports = ( config ) ->
config.set
# enable / disable watching file and executing tests whenever any file changes
autoWatch: true
# base path, that will be used to resolve files relative to this file
basePath: '../'
# Run the tests automatically in these browsers:
# Specify in your ../faspex.json file which browsers to run in
browsers: [ 'PhantomJS' ]
# The files to include in the test
files: wiredep( devDependencies: true )[ 'js' ].map ( file ) ->
path.relative process.cwd(), file
.concat [
'test/unit-mock/**/*.coffee'
'app/**/*.coffee'
'test/unit/**/*.coffee'
]
# The testing framework to use
frameworks: [ 'jasmine' ]
preprocessors: '**/*.coffee': [ 'coffee' ]
reporters: [ 'spec' ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment