Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

angularjs tutorial: test ERROR, no more info

This is my first time using Angular (and Karma), so please excuse me if this is a total beginner's question: that's what I am.

I'm trying to run the Angular-phonecat tests, as described in Step 02 - Writing and Running Tests

My code is checked out directly from the step 2 branch (git checkout -f step-2)

When running the test (angular-phonecat\scripts> test), I'm given the following message:

INFO [karma]: Karma v0.10.2 server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 30.0.1599 (Windows 7)]: Connected on socket Jw-2z-zZ-pytGNN-SHRM
Chrome 30.0.1599 (Windows 7): Executed 0 of 0 ERROR (0.472 secs / 0 secs)

There is no more information given, and I cannot find any log the would detail the problem (nothing in /test or its sub-directories, nor in /logs). I also cannot find a log for karma in general - is there one?

like image 408
Ledivin Avatar asked Mar 04 '26 12:03

Ledivin


1 Answers

You need to add this line to karma.conf.js

exclude: ['app/lib/angular/angular-scenario.js'],

Theres an issue relating to this problem here: https://github.com/angular/angular-phonecat/issues/71

like image 79
jeff_kile Avatar answered Mar 06 '26 02:03

jeff_kile



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!