Last change
on this file since fa375fe was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
1.1 KB
|
Rev | Line | |
---|
[6a3a178] | 1 | module.exports = (config) ->
|
---|
| 2 | config.set
|
---|
| 3 | frameworks: ['mocha']
|
---|
| 4 |
|
---|
| 5 | files: [
|
---|
| 6 | '*.coffee'
|
---|
| 7 | ]
|
---|
| 8 |
|
---|
| 9 | browsers: ['Firefox']
|
---|
| 10 |
|
---|
| 11 | coffeePreprocessor:
|
---|
| 12 | options:
|
---|
| 13 | sourceMap: true
|
---|
| 14 |
|
---|
| 15 | preprocessors:
|
---|
| 16 | # source files, that you wanna generate coverage for
|
---|
| 17 | # do not include tests or libraries
|
---|
| 18 | # (these files will be instrumented by Istanbul via Ibrik unless
|
---|
| 19 | # specified otherwise in coverageReporter.instrumenter)
|
---|
| 20 | 'plus.coffee': 'coverage'
|
---|
| 21 |
|
---|
| 22 | # note: project files will already be converted to
|
---|
| 23 | # JavaScript via coverage preprocessor.
|
---|
| 24 | # Thus, you'll have to limit the CoffeeScript preprocessor
|
---|
| 25 | # to uncovered files.
|
---|
| 26 | 'test.coffee': 'coffee'
|
---|
| 27 |
|
---|
| 28 | coverageReporter:
|
---|
| 29 | type: 'html'
|
---|
| 30 | instrumenters:
|
---|
| 31 | ibrik : require('ibrik')
|
---|
| 32 | instrumenter:
|
---|
| 33 | '**/*.coffee': 'ibrik'
|
---|
| 34 |
|
---|
| 35 | # coverage reporter generates the coverage
|
---|
| 36 | reporters: ['dots', 'coverage']
|
---|
| 37 |
|
---|
| 38 | plugins: [
|
---|
| 39 | require('../../lib/index')
|
---|
| 40 | 'karma-mocha'
|
---|
| 41 | 'karma-coffee-preprocessor'
|
---|
| 42 | 'karma-firefox-launcher'
|
---|
| 43 | ]
|
---|
| 44 |
|
---|
| 45 | singleRun: true
|
---|
Note:
See
TracBrowser
for help on using the repository browser.