尝试在角度教程( http://docs.angularjs.org/tutorial/step_03 )中运行端到端测试时,我得到以下信息......
我做了“git checkout -f step-3”所以它直接来自回购......
[2013-04-05 07:17:07.774] [WARN] config - "/" is proxied, you should probably change urlRoot to avoid conflicts
INFO [testacular]: Testacular server started at http://localhost:9876/
INFO [launcher]: Starting browser Chrome
INFO [Chrome 26.0 (Mac)]: Connected on socket id CamYxe8MuPk52Agq6g5L
WARN [proxy]: failed to proxy /app/index.html (Error: connect ECONNREFUSED)
WARN [proxy]: failed to proxy /app/index.html (Error: connect ECONNREFUSED)
我在 Rails 应用程序中运行该应用程序,该应用程序由 WEBrick 在端口 3000 上提供服务。所以我将 testacula 配置更改为...
proxies = {
'/': 'http://localhost:3000/'
};
...然后测试运行但失败
Chrome 26.0 (Mac) PhoneCat App Phone list view should filter the phone list as user types into the search box FAILED
expect repeater '.phones li' count toBe 3
/Users/paul/rails_projects/angularjs/public/angular-phonecat/test/e2e/scenarios.js:15:7: expected 3 but was 0
所以它似乎没有正确导航到页面。有人有想法么?
干杯