Skip to content

Don't overrider NODE_V8_COVERAGE #70

Description

@kilianc

Is it possible to prepopulate --temp-directory with the content of $NODE_V8_COVERAGE if set? I am trying to integrate c8 in my workflow and I really like the ability to separate execution and reporting.

  • NODE_V8_COVERAGE=/tmp/cov npm test
  • NODE_V8_COVERAGE=/tmp/cov c8 report

Happy to contribute id accepted.
Cheers!

Activity

  1. shinnn commented on Apr 20, 2019

    @shinnn
    Contributor

    Good idea. PR welcome.

    The patch would mainly update the following two lines:

    • default: './coverage/tmp',
      Use process.env.NODE_V8_COVERAGE as a fallback if it exists, instead of './coverage/tmp'
    • c8/bin/c8.js

      Line 29 in 5ea4313

      process.env.NODE_V8_COVERAGE = argv.tempDirectory
      Don't override NODE_V8_COVERAGE if it exists
  2. bcoe commented on Sep 6, 2019

    @bcoe
    Owner

    @kilianc can you confirm that this is now working for you?

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions