Skip to content

The ng test command results in Executed 0 of 0 ERROR on a new project #6284

Closed
@jschwarty

Description

@jschwarty

Bug Report or Feature Request (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request

Versions.

@angular/cli: 1.0.0
node: 7.4.0
os: win32 x64
@angular/common: 4.1.2
@angular/compiler: 4.1.2
@angular/core: 4.1.2
@angular/forms: 4.1.2
@angular/http: 4.1.2
@angular/platform-browser: 4.1.2
@angular/platform-browser-dynamic: 4.1.2
@angular/router: 4.1.2
@angular/cli: 1.0.0
@angular/compiler-cli: 4.1.2

Repro steps.

Run ng new cli
Change directory to cli
Run npm test

The log given by the failure.

11 05 2017 15:48:09.772:WARN [karma]: No captured browser, open http://localhost:9876/
11 05 2017 15:48:09.786:INFO [karma]: Karma v1.4.1 server started at http://0.0.0.0:9876/
11 05 2017 15:48:09.787:INFO [launcher]: Launching browser Chrome with unlimited concurrency
11 05 2017 15:48:09.792:INFO [launcher]: Starting browser Chrome
11 05 2017 15:48:11.635:INFO [Chrome 58.0.3029 (Windows 10 0.0.0)]: Connected on socket jxFy-w1ruFVYlutmAAAA with id 36112906
Chrome 58.0.3029 (Windows 10 0.0.0): Executed 0 of 0 ERROR (0.002 secs / 0 secs)

Desired functionality.

Expected it to find .spec.ts files and run tests.

Mention any other details that might be useful.

Just started experiencing this today (May 11th, 2017). Can replicate it on existing projects that are using @angular/cli: 1.0.0 by deleting the node_modules dir and running an npm i then npm test.

Also note that npm run e2e works fine with a response of Executed 1 of 1 spec SUCCESS in 1 sec..

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulfreq4: criticalHappens to many users every dayworkaround1: obvious

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions