Skip to content

After Sending __coverage__ object from browser to express server running in docker container , istanbul reporter is creating __root__ directory under coverage folder #173

@akki-12345

Description

@akki-12345

In my angular project, I am able to instrument all typescript files using webpack and istanbul-instrumenter-loader. After this I am sending coverage object to express server running in docker container through POST request.

After receiving coverage object on the server side, I am adding that to the istanbul collector and then I am passing istanbul collector to the istanbul reporter for generating html reports.

But istanbul reporter is creating root directory inside coverage directory. Because of this I am not getting correct HTML reports.
How to avoid the creation of root directory???????

express_server.js:

server

coverage report:
coverage_report1

coverage_report2

I am not getting above issue when I am running express server on local machine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions