Skip to content

How to run test #178

New issue

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

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

Already on GitHub? Sign in to your account

Closed
scayssials opened this issue Feb 5, 2016 · 9 comments
Closed

How to run test #178

scayssials opened this issue Feb 5, 2016 · 9 comments

Comments

@scayssials
Copy link

Hi,
By following your doc I don't get how to run a unitTest with the angular-cli config. Can you help me for that please?
Thanks.

@jkuri
Copy link
Contributor

jkuri commented Feb 5, 2016

Hi. First build your app with ng build then run karma start.

@Brocco
Copy link
Contributor

Brocco commented Feb 5, 2016

Running tests will be simpler in the future by just running ng test and you can track the progress in issue #70

Until that time you can follow the instructions in the above comment and find more information in the README.md

@Brocco Brocco closed this as completed Feb 5, 2016
@scayssials
Copy link
Author

I always have this error when I run
karma start

04 02 2016 21:37:01.677:WARN [watcher]: Pattern
"/Users/steph/Project/node_modules/angular2/bundles/testing.js" does not match any file.
04 02 2016 21:37:01.706:WARN [watcher]: Pattern "/Users/steph/Project/dist/*/.css" does not match any file.
04 02 2016 21:37:01.737:WARN [karma]: No captured browser, open http://localhost:9876/
04 02 2016 21:37:01.747:INFO [karma]: Karma v0.13.19 server started at http://localhost:9876/
04 02 2016 21:37:01.753:INFO [launcher]: Starting browser Chrome
04 02 2016 21:37:03.434:INFO [Chrome 48.0.2564 (Mac OS X 10.11.2)]: Connected on socket /#g6JpnEvQqb0ummP6AAAA with id 80857190
04 02 2016 21:37:03.780:WARN [web-server]: 404: /rxjs/Subject
04 02 2016 21:37:03.782:WARN [web-server]: 404: /rxjs/observable/fromPromise
04 02 2016 21:37:03.782:WARN [web-server]: 404: /rxjs/operator/toPromise
04 02 2016 21:37:03.783:WARN [web-server]: 404: /rxjs/Observable
Chrome 48.0.2564 (Mac OS X 10.11.2) ERROR
Error: XHR error (404 Not Found) loading http://localhost:9876/rxjs/Subject
at error (/Users/steph/Project/node_modules/systemjs/dist/system.src.js:1028:16)
at XMLHttpRequest.xhr.onreadystatechange (/Users/steph/Project/node_modules/systemjs/dist/system.src.js:1036:13)

@jkuri
Copy link
Contributor

jkuri commented Feb 5, 2016

Are you using the master?

@scayssials
Copy link
Author

I don't really know, I installed angular-cli via npm

@jkuri
Copy link
Contributor

jkuri commented Feb 5, 2016

You are not using master then. Please see the readme how to use it.

On Friday, 5 February 2016, stephanec1 [email protected] wrote:

I don't really know, I installed angular-cli via npm


Reply to this email directly or view it on GitHub
#178 (comment)
.

@scayssials
Copy link
Author

Ok thank you for your help jkuri 👍

@filipesilva
Copy link
Contributor

@stephanec1 the latest version on npm is a bit out of date in regards to master, sorry you had trouble!

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants