source: trip-planner-front/node_modules/karma-coverage/examples/coffee-requirejs/karma.conf.coffee

Last change on this file was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.4 KB
Line 
1module.exports = (config) ->
2 config.set
3 frameworks: ['mocha', 'requirejs']
4
5 files: [
6 # We do not want any files to execute automatically
7 {pattern: 'calculator.coffee', included: false}
8 {pattern: 'test.coffee', included: false}
9
10 # Except for this one. This one shall execute.
11 'requirejs.karma.coffee'
12 ]
13
14 browsers: ['Firefox']
15
16 coffeePreprocessor:
17 options:
18 sourceMap: true
19
20 preprocessors:
21 # source files, that you wanna generate coverage for
22 # do not include tests or libraries
23 # (these files will be instrumented by Istanbul via Ibrik unless
24 # specified otherwise in coverageReporter.instrumenter)
25 'calculator.coffee': 'coverage'
26
27 # note: project files will already be converted to
28 # JavaScript via coverage preprocessor.
29 # Thus, you'll have to limit the CoffeeScript preprocessor
30 # to uncovered files.
31 'test.coffee': 'coffee'
32 'requirejs.karma.coffee': 'coffee'
33
34 coverageReporter:
35 type: 'text-summary'
36 useJSExtensionForCoffeeScript: true
37 instrumenters:
38 ibrik : require('ibrik')
39 instrumenter:
40 '**/*.coffee': 'ibrik'
41
42 # coverage reporter generates the coverage
43 reporters: ['dots', 'coverage']
44
45 plugins: [
46 require('../../lib/index')
47 'karma-mocha'
48 'karma-requirejs'
49 'karma-coffee-preprocessor'
50 'karma-firefox-launcher'
51 ]
52
53 singleRun: true
Note: See TracBrowser for help on using the repository browser.