KarmaJS (0.9.2) を使用して Jasmine e2e テストを実行したいと考えています。Windows 7 で AngularJS (1.0.7) で Google Closure を使用しています。カルマを開始すると、karma start config\karma-e2e.js
すべて正常に動作します (ブラウザーは正しいページに移動します) が、テストは実行されません (「ブラウザーの移動先」で停止します)。
config\karma-e2e.js
ファイル:
basePath = '../';
frameworks = ['ng-scenario'];
files = [
'tests/e2e/**/*.js'
];
autoWatch = true;
singleRun = false;
browsers = ['Chrome'];
urlRoot = '/__karma/';
proxies = {
'/': 'http://localhost:8080/'
}
plugins = [
'karma-ng-scenario'
'karma-chrome-launcher'
]
テスト ソース ( tests\e2e\scenarios.coffee
) は次のとおりです。
describe 'Intro page view', ->
it 'has hello world message', ->
browser().navigateTo '/app/client/'
expect(element('#text').text()).toBe 'Hello World'
私は html5Mode ルートを使用しており、angular は を使用して手動でブートストラップangular.bootstrap
されています。すべてのコーヒー スクリプトは IDE によってコンパイルされており、ブラウザー コンソールまたはコマンド ラインにエラーは表示されません。では、どうすればいいですか?私は何か間違ったことをしていますか?
ありがとう!