Skip to content

karma singleRun broken (browser stays open) #3554

@display-none

Description

@display-none

Please provide us with the following information:

OS?

Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)

Windows 7

Versions.

Please run ng --version. If there's nothing outputted, please run in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.22-1
node: 6.9.1
os: win32 x64

Repro steps.

Was this an app that wasn't created using the CLI? What change did you do on your code? etc.

  1. create project using ng new
  2. change autoWatch to false and singleRun to true in karma.conf.js
  3. run ng test

expected: tests are run once and the browser is closed
actual: tests do not run and the browser stays open (when autoWatch is true the tests are run, but browser stays open nonetheless)

The log given by the failure.

Normally this include a stack trace and some more information.

nothing happens (no error message or stack trace)

Mention any other details that might be useful.

Such config was last running fine on angular-cli@1.0.0-beta.19-3.

Running ng test --watch false --single-run true works as expected.


Thanks! We'll be in touch soon.

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