title: How to integrate Karma with TeamCity
body: <p>I am able to run tests via Karma in TeamCity since you can run anything that's accessible via command line.  But, TeamCity only reports overall pass/fail -- does not report details of any failed tests.  If it fails, I just get "Process exited with code 1".</p>
  
  <p>The karma homepage says there is a teamcity integration, but the <a href="http://karma-runner.github.io/0.8/plus/Teamcity.html" rel="noreferrer">teamcity link</a> says "Not available yet".</p>
  
  <p>There seems to be a GIT project with <a href="https://npmjs.org/package/karma-teamcity-reporter" rel="noreferrer">npm install package</a>.  But, the npm install failed with messages that don't mean much to me.</p>
  
  <pre><code>&gt; npm http GET https://registry.npmjs.org/karma-teamcity-reporter npm
  &gt; http 304 https://registry.npmjs.org/karma-teamcity-reporter npm http
  &gt; GET https://registry.npmjs.org/karma npm http 304
  &gt; https://registry.npmjs.org/karma npm WARN `git config --get
  &gt; remote.origin.url` returned wrong result
  &gt; (git://github.com/vojtajina/node-di.git) undefined npm WARN `git
  &gt; config --get remote.origin.url` returned wrong result
  &gt; (git://github.com/vojtajina/node-di.git) undefined npm http GET
  &gt; https://registry.npmjs.org/chokidar npm http GET
  &gt; https://registry.npmjs.org/socket.io npm http GET
  &gt; https://registry.npmjs.org/http-proxy npm http GET
  &gt; https://registry.npmjs.org/glob npm http GET
  &gt; https://registry.npmjs.org/optimist npm http GET
  &gt; https://registry.npmjs.org/coffee-script npm http GET
  &gt; https://registry.npmjs.org/colors/0.6.0-1 npm http GET
  &gt; https://registry.npmjs.org/minimatch npm http GET
  &gt; https://registry.npmjs.org/pause/0.0.1 npm http GET
  &gt; https://registry.npmjs.org/mime npm ERR! git clone
  &gt; git://github.com/vojtajina/node-di.git undefined npm ERR! git clone
  &gt; git://github.com/vojtajina/node-di.git undefined npm http GET
  &gt; https://registry.npmjs.org/q npm http GET
  &gt; https://registry.npmjs.org/lodash npm http GET
  &gt; https://registry.npmjs.org/log4js npm http GET
  &gt; https://registry.npmjs.org/rimraf npm ERR! Error: spawn ENOENT npm
  &gt; ERR!     at errnoException (child_process.js:975:11) npm ERR!     at
  &gt; Process.ChildProcess._handle.onexit (child_process.js:766:34) npm ERR!
  &gt; If you need help, you may report this log at: npm ERR!    
  &gt; &lt;http://github.com/isaacs/npm/issues&gt; npm ERR! or email it to: npm
  &gt; ERR!     &lt;npm-@googlegroups.com&gt;
  &gt; 
  &gt; npm ERR! System Windows_NT 6.1.7601 npm ERR! command "C:\\Program
  &gt; Files\\nodejs\\\\node.exe" "C:\\Program
  &gt; Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
  &gt; "karma-teamcity-reporter" npm ERR! cwd C:\Users\steve npm ERR! node -v
  &gt; v0.10.5 npm ERR! npm -v 1.2.18 npm ERR! syscall spawn npm ERR! code
  &gt; ENOENT npm ERR! errno ENOENT npm http 304
  &gt; https://registry.npmjs.org/chokidar npm http 304
  &gt; https://registry.npmjs.org/optimist npm http 304
  &gt; https://registry.npmjs.org/socket.io npm http 304
  &gt; https://registry.npmjs.org/glob npm http 304
  &gt; https://registry.npmjs.org/http-proxy npm http 304
  &gt; https://registry.npmjs.org/coffee-script npm http 304
  &gt; https://registry.npmjs.org/colors/0.6.0-1 npm http 304
  &gt; https://registry.npmjs.org/minimatch npm http 304
  &gt; https://registry.npmjs.org/mime npm http 304
  &gt; https://registry.npmjs.org/pause/0.0.1 npm http 304
  &gt; https://registry.npmjs.org/q npm http 304
  &gt; https://registry.npmjs.org/lodash npm http 304
  &gt; https://registry.npmjs.org/log4js npm http 304
  &gt; https://registry.npmjs.org/rimraf npm ERR!  npm ERR! Additional
  &gt; logging details can be found in: npm ERR!    
  &gt; C:\Users\steve\npm-debug.log npm ERR! not ok code 0
  </code></pre>
  
  <p>I'm new to npm.  So maybe I'm doing something wrong with npm.  But, even if the npm install works, then what do I do?  Should I expect the next teamcity run of karma to include the special teamcity log messages?</p>
  
  <p>Anyone know how to fully integrate Karma into teamcity?</p>