Code Monkey home page Code Monkey logo

Comments (3)

AlexVangelov avatar AlexVangelov commented on June 18, 2024 1

Perfect! And stats are adjusted.

from karma-typescript.

AlexVangelov avatar AlexVangelov commented on June 18, 2024

I found it,
by adding

karma-coverage

and
coverageReporter: { type: "text-summary" }

Easy to use package, nice work!

from karma-typescript.

erikbarke avatar erikbarke commented on June 18, 2024

Hey, thanks!

I found and fixed a bug thanks to this issue, you should be able to add this to your config after the next release (v2.0.3):

karmaTypescriptConfig: {
    reports:
    {
        "html": "coverage",
        "text-summary": ""
    }
}

This will give you the html report and a console report with correct statistics for the remapped coverage:

Statements   : 100% ( 15/15 )
Branches     : 100% ( 0/0 )
Functions    : 100% ( 5/5 )
Lines        : 100% ( 11/11 )

The incorrect statistics created by karma-coverage (really not the fault of karma-coverage though, it's been fed transpiled and modularized javascript):

Statements   : 100% ( 25/25 )
Branches     : 66.67% ( 4/6 )
Functions    : 100% ( 9/9 )
Lines        : 100% ( 19/19 )

Cheers!

from karma-typescript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.