Skip to content

1.0.0-beta.31 ng test failed on code-coverage. #4577

Closed
@abcfy2

Description

@abcfy2

Please provide us with the following information:

OS?

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

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.31
node: 6.9.5
os: linux x64
@angular/common: 2.2.1
@angular/compiler: 2.2.1
@angular/compiler-cli: 2.2.1
@angular/core: 2.2.1
@angular/forms: 2.2.1
@angular/http: 2.2.1
@angular/platform-browser: 2.2.1
@angular/platform-browser-dynamic: 2.2.1
@angular/platform-server: 2.2.1
@angular/cli: 1.0.0-beta.31

Repro steps.

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

The log given by the failure.

Normally this include a stack trace and some more information.

ng test --code-coverage --watch=false 

START:
10 02 2017 13:02:33.145:WARN [karma]: Port 9876 in use                                     
10 02 2017 13:02:33.146:WARN [karma]: Port 9877 in use
10 02 2017 13:02:33.146:WARN [karma]: Port 9878 in use
10 02 2017 13:02:33.147:INFO [karma]: Karma v1.4.1 server started at http://0.0.0.0:9879/
10 02 2017 13:02:33.147:INFO [launcher]: Launching browser PhantomJS with unlimited concurrency
10 02 2017 13:02:33.152:INFO [launcher]: Starting browser PhantomJS
10 02 2017 13:02:34.211:INFO [PhantomJS 2.1.1 (Linux 0.0.0)]: Connected on socket Jv5eAJYFqrfBbjC3AAAA with id 84629039

... SNIP ...


SUMMARY:
✔ 69 tests completed
Error: Could not find source map for: "/home/fengyu/projects/linchang/site-client-app/src/test.ts"
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:213:11
    at Array.forEach (native)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:192:22
    at Array.forEach (native)
    at remap (/home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:191:12)
    at KarmaRemapIstanbul.onRunComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma-remap-istanbul/index.js:58:21)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at emitRunCompleteIfAllBrowsersDone (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:295:12)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:326:7)
    at emitOne (events.js:96:13)
    at Server.emit (events.js:188:7)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:309:12)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at Browser.onComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/browser.js:143:13)
    at Socket.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Socket.emit (events.js:191:7)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/socket.io/lib/socket.js:503:12
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Error: Could not find source map for: "/home/fengyu/projects/linchang/site-client-app/src/polyfills.ts"
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:213:11
    at Array.forEach (native)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:192:22
    at Array.forEach (native)
    at remap (/home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:191:12)
    at KarmaRemapIstanbul.onRunComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma-remap-istanbul/index.js:58:21)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at emitRunCompleteIfAllBrowsersDone (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:295:12)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:326:7)
    at emitOne (events.js:96:13)
    at Server.emit (events.js:188:7)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:309:12)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at Browser.onComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/browser.js:143:13)
    at Socket.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Socket.emit (events.js:191:7)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/socket.io/lib/socket.js:503:12
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
Error: Could not find source map for: "/home/fengyu/projects/linchang/site-client-app/src/mocks.ts"
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:213:11
    at Array.forEach (native)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:192:22
    at Array.forEach (native)
    at remap (/home/fengyu/projects/linchang/site-client-app/node_modules/remap-istanbul/lib/remap.js:191:12)
    at KarmaRemapIstanbul.onRunComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma-remap-istanbul/index.js:58:21)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at emitRunCompleteIfAllBrowsersDone (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:295:12)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:326:7)
    at emitOne (events.js:96:13)
    at Server.emit (events.js:188:7)
    at Server.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/server.js:309:12)
    at emitTwo (events.js:111:20)
    at Server.emit (events.js:191:7)
    at Browser.onComplete (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/browser.js:143:13)
    at Socket.<anonymous> (/home/fengyu/projects/linchang/site-client-app/node_modules/karma/lib/events.js:13:22)
    at emitTwo (events.js:111:20)
    at Socket.emit (events.js:191:7)
    at /home/fengyu/projects/linchang/site-client-app/node_modules/socket.io/lib/socket.js:503:12
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)

...

Mention any other details that might be useful.

The pre version 1.0.0-beta.30 works very well.


Thanks! We'll be in touch soon.

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