Skip to content

NODE_V8_COVERAGE broken on OSX (perhaps other platforms) #25287

Description

@bcoe

#25127 seems to break coverage on OSX:

NODE_V8_COVERAGE=.coverage ./node ./test/parallel/test-v8-coverage.js 

TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be one of type string, Buffer, or URL. Received type undefined
    at mkdirSync (fs.js:766:3)
    at process.writeCoverage (internal/process/coverage.js:16:5)
    at process.emit (events.js:193:15)

My guess is that coverage might be initialized either before the inspector is running, or before the process.env object has been populated.

Not sure why this wouldn't have been caught in the linux test suite.

I believe this is the root cause of nodejs/node-v8#97

CC: @nodejs/build

Activity

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

Metadata

Metadata

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