Skip to content

@angular/cli - eject command - testing does not output any coverage reports #5553

@jgodi

Description

@jgodi

Bug Report or Feature Request (mark with an x)

- [x] bug report
- [ ] feature request

Versions

@angular/cli: 1.0.0-rc.4 (e)
node: 6.10.0
os: darwin x64
@angular/common: 2.4.10
@angular/compiler: 2.4.10
@angular/core: 2.4.10
@angular/forms: 2.4.10
@angular/http: 2.4.10
@angular/platform-browser: 2.4.10
@angular/platform-browser-dynamic: 2.4.10
@angular/router: 3.4.10
@angular/cli: 1.0.0-rc.4
@angular/compiler-cli: 2.4.10

Repro steps.

ng new testerino
cd testerino
ng eject -aot -prod
npm test

The log given by the failure.

No failure, but there is no coverage numbers outputted.

Desired functionality.

A coverage folder is created and coverage reports populated.

Mention any other details that might be useful.

The ejected reporters in the karma.conf.js are:

reporters: config.angularCli && config.angularCli.codeCoverage
              ? ['progress', 'coverage-istanbul']
              : ['progress', 'kjhtml'],

I even updated these to reporters: ['progress', 'coverage-istanbul', 'kjhtml'] and still have the same results (as per #5514).

Has anyone else ran across this?

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