Skip to content

Code coverage html output. #50

Description

@deathlynocturnal

Hello!

Less of a bug, more of support issue.

Working with this, wanted to try and get code coverage, and currently seeing this:

ℹ -------------------------------------------------------------------------------
ℹ file                           | line % | branch % | funcs % | uncovered lines
ℹ -------------------------------------------------------------------------------
ℹ src/providers/dot-prop.spec.ts | 100.00 |   100.00 |  100.00 | 
ℹ src/providers/dot-prop.ts      | 100.00 |    86.27 |  100.00 | 
ℹ -------------------------------------------------------------------------------
ℹ all files                      | 100.00 |    90.79 |  100.00 |
ℹ -------------------------------------------------------------------------------

I wanted to use some form of vscode extension to highlight the areas that weren't tested, but I have noticed none seem to support json format only html.

I am currently using this command:

NODE_V8_COVERAGE=coverage node --experimental-test-coverage --report-dir=./src --test-reporter=spec --loader tsx --test ./src/**/*.spec.ts

And it's fine to display it in the console, but how would I get this written to HTML or something else? Are there any built in options?

Thanks in advance.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions