Skip to content

Code coverage is not collected from Worker context(s) #13206

@canonic-epicure

Description

@canonic-epicure
$ deno --version
deno 1.17.0 (release, x86_64-unknown-linux-gnu)
v8 9.7.106.15
typescript 4.5.2

It seems code coverage is not collected for scripts from the worker contexts (neither from the worker script itself, nor from the imported scripts).

Steps to reproduce:

  1. Clone the git@github.com:canonic-epicure/deno-reproduce.git
  2. Inside the repo folder, run DENO_UNSTABLE_COVERAGE_DIR=cov deno run -A --unstable reproduce.js
  3. Search inside the cov folder, it contains a single file for every file, for which coverage information was collected.
    There should be a file containing the text: lib.js and worker.js, but there's none. The file for reproduce.js presents as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working correctlytestingrelated to deno test and coverage

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions