angular-cli: ng test --single-run doesn't work on TFS CI build?

Please provide us with the following information:

OS?

Windows10 x64 TFS

Versions.

ng --version: 1.0.0-beta.21 node --version: v5.11.0

Repro steps.

Standard app

The log given by the failure.

2016-12-08T14:21:16.6627730Z ##[section]Starting: npm test
2016-12-08T14:21:16.6637734Z ==============================================================================
2016-12-08T14:21:16.6637734Z Task         : npm
2016-12-08T14:21:16.6637734Z Description  : Run a npm command
2016-12-08T14:21:16.6637734Z Version      : 0.2.20
2016-12-08T14:21:16.6637734Z Author       : Microsoft Corporation
2016-12-08T14:21:16.6637734Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkID=613746)
2016-12-08T14:21:16.6637734Z ==============================================================================
2016-12-08T14:21:16.9697740Z [command]C:\Program Files\nodejs\npm.cmd config list
2016-12-08T14:21:18.3847749Z ; cli configs
2016-12-08T14:21:18.3847749Z user-agent = "npm/3.8.6 node/v5.11.0 win32 x64"
2016-12-08T14:21:18.3847749Z 
2016-12-08T14:21:18.3847749Z ; environment configs
2016-12-08T14:21:18.3847749Z cache = "C:\\NPM\\Cache"
2016-12-08T14:21:18.3847749Z prefix = "C:\\NPM\\Modules"
2016-12-08T14:21:18.3847749Z 
2016-12-08T14:21:18.3847749Z ; globalconfig C:\NPM\Modules\etc\npmrc
2016-12-08T14:21:18.3847749Z registry = "http://registry.npmjs.org/"
2016-12-08T14:21:18.3847749Z 
2016-12-08T14:21:18.3847749Z ; builtin config undefined
2016-12-08T14:21:18.3857747Z 
2016-12-08T14:21:18.3857747Z ; node bin location = C:\Program Files\nodejs\node.exe
2016-12-08T14:21:18.3857747Z ; cwd = C:\a\1\s
2016-12-08T14:21:18.3857747Z ; HOME = C:\Users\buildguest
2016-12-08T14:21:18.3857747Z ; "npm config ls -l" to show all defaults.
2016-12-08T14:21:18.3857747Z 
2016-12-08T14:21:18.4049530Z [command]C:\Program Files\nodejs\npm.cmd test
2016-12-08T14:21:19.9407747Z 
2016-12-08T14:21:19.9407747Z > coty-monitoring-system@0.0.0 test C:\a\1\s
2016-12-08T14:21:19.9407747Z > ng test --single-run
2016-12-08T14:21:19.9407747Z 
2016-12-08T14:21:59.8347746Z 08 12 2016 14:21:59.830:INFO [karma]: Karma v1.2.0 server started at http://localhost:9876/
2016-12-08T14:21:59.8357790Z 08 12 2016 14:21:59.834:INFO [launcher]: Launching browser Chrome with unlimited concurrency
2016-12-08T14:21:59.8427793Z 08 12 2016 14:21:59.842:INFO [launcher]: Starting browser Chrome
2016-12-08T14:22:59.8430882Z 08 12 2016 14:22:59.843:WARN [launcher]: Chrome have not captured in 60000 ms, killing.
2016-12-08T14:23:01.8443962Z 08 12 2016 14:23:01.844:WARN [launcher]: Chrome was not killed in 2000 ms, sending SIGKILL.
2016-12-08T14:23:03.8459047Z 08 12 2016 14:23:03.845:WARN [launcher]: Chrome was not killed by SIGKILL in 2000 ms, continuing.
2016-12-08T14:23:04.4549756Z npm ERR! Test failed.  See above for more details.
2016-12-08T14:23:04.4909723Z ##[error]npm failed with error: C:\Program Files\nodejs\npm.cmd failed with return code: 1
2016-12-08T14:23:04.4960390Z ##[section]Finishing: npm test

Mention any other details that might be useful.

My project builds and tests fine on my local machine, but when pushed to our TFS (Visual Studio Team Services) server, no tests run, that build step fails and the command seems to time out?


Thanks! We’ll be in touch soon.

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 22 (1 by maintainers)

Most upvoted comments

@georgeedwards to make it work again, I had to add following code into karma.conf.js

mime: { 'text/x-typescript': ['ts','tsx'] },