Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Not able to run test for individual apps #2092

Open
skolli853780 opened this issue Sep 28, 2017 · 3 comments
Open

Not able to run test for individual apps #2092

skolli853780 opened this issue Sep 28, 2017 · 3 comments

Comments

@skolli853780
Copy link

I'm submitting a ... (check one with "x")

[X ] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request => Please do not submit support request here, instead see use [gitter](https://gitter.im/mgechev/angular2-seed) or [stackoverflow](https://stackoverflow.com/questions/tagged/angular2)

Current behavior

npm test does not take app parameter.. we have 2 applications using same angular seed.
if I run npm test -- --app sd, it does not run tests for sd application

Expected behavior

Like the way, we can start and build individual applications by passing --app parameter, npm test with app parameter should run
Minimal reproduction of the problem with instructions

execute npm test -- --app

What is the motivation / use case for changing the behavior?

In a distributed team environment, developers should be able to run tests on individual application
Please tell us about your environment:

Windows 10

  • Angular Seed Version: aaaaf75
  • Node: node --version =
@mgechev
Copy link
Owner

mgechev commented Oct 21, 2017

@skolli853780 thanks for opening this issue. Would love to get a PR for that!

@skolli853780
Copy link
Author

skolli853780 commented Nov 9, 2017

Can you please check with Angular seed contributors if they can provide a solution for this issue? I am not an expert in this area..

@aap21
Copy link

aap21 commented Jun 27, 2018

Hi

I am also attempting to run npm test and I get errors out of the box. Any suggestions on correctly executing a simple unit app component unit test?

Below are the errors:

27 06 2018 14:15:12.548:INFO [karma]: Karma v2.0.3 server started at http://0.0.0.0:9877/
27 06 2018 14:15:12.549:INFO [launcher]: Launching browser Chrome with unlimited concurrency
27 06 2018 14:15:12.557:INFO [launcher]: Starting browser Chrome
27 06 2018 14:15:18.335:INFO [Chrome 67.0.3396 (Windows 10 0.0.0)]: Connected on socket jY7LkPPjEwsoh-e2AAAA with id 86362703
27 06 2018 14:15:21.752:WARN [web-server]: 404: /base/node_modules/@ng-idle/core/bundles/core.umd.js
27 06 2018 14:15:21.760:WARN [web-server]: 404: /base/node_modules/@ng-idle/keepalive/bundles/keepalive.umd.js

Chrome 67.0.3396 (Windows 10 0.0.0) ERROR: 'Error: Fetch error: 404 Not Found
at http://localhost:9877/base/node_modules/systemjs/dist/system.src.js?24c6d822129935a215cd79d5738b40d09661f3d5:1454:15
at ZoneDelegate.invoke (http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:388:26)
at Zone.run (http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:138:43)
at http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:872:34
at ZoneDelegate.invokeTask (http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:421:31)
at Zone.runTask (http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:188:47)
at drainMicroTaskQueue (http://localhost:9877/base/node_modules/zone.js/dist/zone.js?31405934ea8c08e72de05c03ca00a77319718226:595:35)'

Finished in 0.002 secs / 0 secs @ 14:15:21 GMT-0500 (Central Daylight Time)

SUMMARY:
√ 0 tests completed
[14:15:22] 'karma.run.without_coverage' errored after 24 s
[14:15:22] Error: task completion callback called too many times

at finish (C:\Code\Marcom-NexGen\UI\Prod\MCX_6.0.1_Version_2\node_modules\orchestrator\lib\runTask.js:15:10)
at cb (C:\Code\Marcom-NexGen\UI\Prod\MCX_6.0.1_Version_2\node_modules\orchestrator\lib\runTask.js:29:3)
at C:\Code\Marcom-NexGen\UI\Prod\MCX_6.0.1_Version_2\tools\tasks\seed\karma.run.without_coverage.ts:10:5
at removeAllListeners (C:\Code\Marcom-NexGen\UI\Prod\MCX_6.0.1_Version_2\node_modules\karma\lib\server.js:333:9)
at webServer.close (C:\Code\Marcom-NexGen\UI\Prod\MCX_6.0.1_Version_2\node_modules\karma\lib\server.js:343:11)
at Server.close (net.js:1608:9)
at Object.onceWrapper (events.js:313:30)
at emitNone (events.js:111:20)
at Server.emit (events.js:208:7)
at emitCloseNT (net.js:1659:8)
at _combinedTickCallback (internal/process/next_tick.js:135:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants