2013-05-02 28 views
23

TeamCityでカルマ経由でテストを実行できるのは、コマンドラインからアクセス可能なものを実行できるからです。しかし、TeamCityは全体の合格/不合格の報告のみを行い、失敗したテストの詳細は報告しません。それが失敗すると、「プロセスはコード1で終了しました」というメッセージが表示されます。カルマをTeamCityと統合する方法

カルマのホームページには、チームシップの統合がありますが、teamcity linkには「まだ利用できません」と表示されています。

npm install packageのGITプロジェクトがあるようです。しかし、npmのインストールに失敗したメッセージは、あまり意味がありません。

> npm http GET https://registry.npmjs.org/karma-teamcity-reporter npm 
> http 304 https://registry.npmjs.org/karma-teamcity-reporter npm http 
> GET https://registry.npmjs.org/karma npm http 304 
> https://registry.npmjs.org/karma npm WARN `git config --get 
> remote.origin.url` returned wrong result 
> (git://github.com/vojtajina/node-di.git) undefined npm WARN `git 
> config --get remote.origin.url` returned wrong result 
> (git://github.com/vojtajina/node-di.git) undefined npm http GET 
> https://registry.npmjs.org/chokidar npm http GET 
> https://registry.npmjs.org/socket.io npm http GET 
> https://registry.npmjs.org/http-proxy npm http GET 
> https://registry.npmjs.org/glob npm http GET 
> https://registry.npmjs.org/optimist npm http GET 
> https://registry.npmjs.org/coffee-script npm http GET 
> https://registry.npmjs.org/colors/0.6.0-1 npm http GET 
> https://registry.npmjs.org/minimatch npm http GET 
> https://registry.npmjs.org/pause/0.0.1 npm http GET 
> https://registry.npmjs.org/mime npm ERR! git clone 
> git://github.com/vojtajina/node-di.git undefined npm ERR! git clone 
> git://github.com/vojtajina/node-di.git undefined npm http GET 
> https://registry.npmjs.org/q npm http GET 
> https://registry.npmjs.org/lodash npm http GET 
> https://registry.npmjs.org/log4js npm http GET 
> https://registry.npmjs.org/rimraf npm ERR! Error: spawn ENOENT npm 
> ERR!  at errnoException (child_process.js:975:11) npm ERR!  at 
> Process.ChildProcess._handle.onexit (child_process.js:766:34) npm ERR! 
> If you need help, you may report this log at: npm ERR!  
> <http://github.com/isaacs/npm/issues> npm ERR! or email it to: npm 
> ERR!  <[email protected]> 
> 
> npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program 
> Files\\nodejs\\\\node.exe" "C:\\Program 
> Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" 
> "karma-teamcity-reporter" npm ERR! cwd C:\Users\steve npm ERR! node -v 
> v0.10.5 npm ERR! npm -v 1.2.18 npm ERR! syscall spawn npm ERR! code 
> ENOENT npm ERR! errno ENOENT npm http 304 
> https://registry.npmjs.org/chokidar npm http 304 
> https://registry.npmjs.org/optimist npm http 304 
> https://registry.npmjs.org/socket.io npm http 304 
> https://registry.npmjs.org/glob npm http 304 
> https://registry.npmjs.org/http-proxy npm http 304 
> https://registry.npmjs.org/coffee-script npm http 304 
> https://registry.npmjs.org/colors/0.6.0-1 npm http 304 
> https://registry.npmjs.org/minimatch npm http 304 
> https://registry.npmjs.org/mime npm http 304 
> https://registry.npmjs.org/pause/0.0.1 npm http 304 
> https://registry.npmjs.org/q npm http 304 
> https://registry.npmjs.org/lodash npm http 304 
> https://registry.npmjs.org/log4js npm http 304 
> https://registry.npmjs.org/rimraf npm ERR! npm ERR! Additional 
> logging details can be found in: npm ERR!  
> C:\Users\steve\npm-debug.log npm ERR! not ok code 0 

私はnpmを新しくしました。だから多分私はnpmで何か間違っている。しかし、npmのインストールが機能しても、私は何をしますか?私は次のチームカルティエのカルマ実行に特別なチームシップログメッセージを含めることを期待する必要がありますか?

カルマをチームシップに完全に統合する方法を知っている人は誰ですか?

答えて

23

teamcityレポーターを含むstable karmaを使用します。

そして、teamcity reporterを使用すると、stdoutにteamcity出力が生成されます。

karma start --reporters teamcity --single-run 
+0

スーパー!私はすでにカルマをインストールしていました。私がしなければならなかったのは、teamcity configのコマンドラインを更新することだけでした。ありがとう!! – steve

+0

@Vojta:PhantomJSをブラウザとして使用してチーム・シティでこのコマンドを実行すると、実行は完了しません。あなたはこの問題の原因を知っていますか? – RBZ

+0

おそらく[この問題](https://github.com/karma-runner/karma-teamcity-reporter/issues/5) - TeamCityがそれを報告するには、書き込みが同期している必要があります。 – Mendhak

関連する問題