Questions tagged [remap-istanbul]

A tool for remapping Istanbul coverage via Source Maps

A package that provides the ability to remap Istanbul code coverage information to its original source positions based on a JavaScript Source Maps v3.

17 questions
10
votes
1 answer

Can't find source maps for Karma + Jasmine + TypeScript + Webpack

I'm trying to test (with coverage) my TypeScript application using Karma, Jasmine, and Webpack. With the following, I'm able to successfully run tests, but am unable to generate coverage properly. I'm using karma-remap-coverage…
amlyhamm
  • 1,110
  • 2
  • 18
  • 36
6
votes
0 answers

istanbul report can't find source maps

When trying to create an istanbul report (angular2-cli app), I get the following error [Error: Could not find source map for:"/Users/dylan/IdeaProjects/IssueTracker2-UI/code/dist/vendor/es6-shim/es6-shim.js"] [Error: Could not find source map for:…
Dylan Meeus
  • 5,696
  • 2
  • 30
  • 49
3
votes
0 answers

Can I set "strict mode" for js as a global parameter

I have a typescript project that is using Mocha to generate coverage. I would like to convert the coverage back to the typescript files using remap-istanbul, however I keep on getting this error when I try to run remap-istanbul on my…
annedroiid
  • 6,267
  • 11
  • 31
  • 54
3
votes
1 answer

Grunt, Istanbul, Isparta and TypeScript

TL;DR Has anyone used Grunt and Jasmine to successfully generate coverage reports? Long Story: I have a few tests, written in Jasmine, for which I wanted to generate some coverage information. For being generic, I have actually used grunt-istanbul,…
Xabre
  • 1,292
  • 1
  • 11
  • 17
2
votes
2 answers

How to convert existing istanbul json file to html

I want to convert istanbul coverage report file fetched from client in JSON format to html format. Currently I'm using remap-istanbul for this but actually that particular that particular tool is designed to remap coverage data for code which was…
shabunc
  • 23,119
  • 19
  • 77
  • 102
2
votes
1 answer

Adding code coverage to the ASP.NET Core Angular 2 Starter Application

I have started a project by using the Angular ASP.NET Core 2.0 template as found in Visual Studio 2017 Update 3 after installing the .NET Core 2.0 SDK. Tests in Karma work fine, but I want to add code coverage to Karma. I have tried several…
2
votes
1 answer

Remap Istanbul incorrect coverage report

Running a react redux app with typescript i get incorrect coverage results when running karma webpack with istanbul-remap for mapping back to typescript source code. For example i added a change to a react unit test that makes the code not go into…
radix
  • 795
  • 1
  • 5
  • 16
2
votes
0 answers

webpack configuration for coverage with remap-istanbul

I've already made setup for typescript+babel(stage-1+react) project with mocha tests + istanbul coverage. Mocha is configured this way: webpack builds commonjs bundles in tmp directory with istanbul-instrumenter-loader. Entry points are files that…
Aleh Kashnikau
  • 183
  • 2
  • 10
1
vote
0 answers

Karma-webpack angularjs typescript broken source map in inline mode

I have the following configuration: karma.conf.js var webpack = require('./webpack/webpack.dev'); var port = process.env['KARMA_PORT'] || '9876'; module.exports = (config) => { config.set({ basePath: '', frameworks: ['modules',…
1
vote
0 answers

What is the correct way to generate accurate coverage reports?

I have a Webpack setup which produces a bundle using both the webpack-dev-server and for production a file on disk. I have also got tests running with Karma. I want to add code coverage reports but it seems I have tried everything but cannot get it…
1
vote
1 answer

How to measure code coverage of e2e testing which written by typescript?

i have a angular2 project which is using Protractor for e2e testing. The testing file were written in typescript under Jasmine framework. Is it possible to get the code coverage data from this kind of e2e testing?
gtv
  • 21
  • 1
  • 3
1
vote
1 answer

remap istanbul when using typescript AND babel

I'm trying to use remap istanbul to get code coverage for my TypeScript project. However, because I'm using async/await and TypeScript doesn't yet support transpiling that code to ES5 I'm also using Babel to make that work. So basically my…
1
vote
1 answer

configure remap-istanbul to include all source files

I am configuring my application developed on Ionic 2 with Angular 2 and TS to generate code coverage reports generated for my test files. I am using Jasmine , Karma and remap-istanbul for Unit Testing and generating coverage reports. refering to…
0
votes
0 answers

Aurelia Karma Instanbul coverage error -4075

I recently started to get the following error when running karma inside the Aurelia app: ERROR [reporter.remap-istanbul]: { RangeError: Maximum call stack size exceeded at Object.fs.mkdirSync (fs.js:923:18) at sync…
Mipod
  • 135
  • 1
  • 12
0
votes
4 answers

Error: Could not find source map for in Angular2, Karma, Webpack and Istanbul

I am trying to generate coverage report of TypeScript Files using karma-remap-istanbul plugin. My test cases are being executed successfully by karma, but when karma-remap-istanbul is trying to generate coverage report, it is throwing following…
gschambial
  • 1,383
  • 2
  • 11
  • 22
1
2