typescript - Error: Could not find source map for ...ts in remap-coverage with karma -
i'm tryining generate cobertura coverage report on jenkins server typescript angularjs application.
the karma.conf.js
module.exports = function (config) { config.set({ files: [ 'app/**/*.ts', './build/vendor.js', { pattern: './bower_components/angular-resource/angular-resource.js', watch: false }, { pattern: './bower_components/angular-mocks/angular-mocks.js', watch: false }, { pattern: 'api/**/*.json', served: true, included: false }, 'build/app.js', 'test/**/*.test.ts' ], // source files wanna generate coverage for. // not include tests or libraries preprocessors: { "app/**/*.ts": ["coverage"], "**/*.ts": ["karma-typescript"], "app/**/*.js": ["sourcemap"] }, // browsers test against, sure install correct karma browser launcher plugin browsers: ["chrome"], // level of logging: log_disable || log_error || log_warn || log_info || log_debug loglevel: config.log_warn, // base path, used resolve files , exclude basepath: '.', // web server port port: 7676, // testing framework use (jasmine/mocha/qunit/...) frameworks: ["jasmine", "karma-typescript"], // additional reporters, such growl, junit, teamcity or coverage reporters: ["progress", "karma-typescript", "junit", "coverage", "remap-coverage"], // default configuration junitreporter: { outputdir: 'test/results/', // results saved $outputdir/$browsername.xml outputfile: 'unittest.xml', // if included, results saved $outputdir/$browsername/$outputfile suite: '', // suite become package name attribute in xml testsuite element usebrowsername: true, // add browser name report , classes names nameformatter: undefined, // function (browser, result) customize name attribute in xml testcase element classnameformatter: undefined, // function (browser, result) customize classname attribute in xml testcase element properties: {} // key value pair of properties add <properties> section of report }, coveragereporter: { type: 'in-memory' }, remapcoveragereporter: { cobertura: './coverage/cobertura.xml', }, plugins: [ 'karma-jasmine', 'karma-phantomjs-launcher', 'karma-chrome-launcher', 'karma-typescript', 'karma-typescript-preprocessor', 'karma-coverage', 'karma-junit-reporter', 'karma-remap-coverage', 'karma-sourcemap-loader' ], // continuous integration mode, if true, capture browsers, run tests , exit singlerun: true, // set ci, encase slow (saucelabs) // capturetimeout: 120000, // enable / disable watching file , executing tests whenever file changes // autowatch: true, // (set grunt file) // enable or disable colors in output (reporters , logs). colors: true }); };
every time run tests error
error: not find source map for: "c:\projects...\app\layout\language\languages.controller.ts"
what missing? suggestions?
Comments
Post a Comment