title: Settings Karma to run tests with jasmine, requirejs and react
body: <p>I'm working on creation my own <a href="https://github.com/web-jenezis/jenezis-project-bootstrap" rel="nofollow">bootstrap project</a> which includes RequireJS for modules structure, Backbone for routing and simple static views, ReactJS for components. The project works fine, but I want to add unit-testing support to cover my units of code in future projects. I'm trying to add Karma as a test runner with Jasmine and RequireJS support in unit tests (then I'll add <a href="http://facebook.github.io/react/docs/test-utils.html" rel="nofollow">TestUtils</a> for components testing).</p>
  
  <p>At the moment I have some troubles with Karma... it not works for me...
  I created Gruntfile.js with configuration for karma:</p>
  
  <pre><code>karma: {
      unit: {
          configFile: 'karma.config.js'
      }
  }
  </code></pre>
  
  <p>Also I added <a href="https://github.com/web-jenezis/jenezis-project-bootstrap/blob/master/karma.config.js" rel="nofollow"><code>karma.config.js</code></a> file with configurations. And also I added the file with RequireJS configurations for tests <a href="https://github.com/web-jenezis/jenezis-project-bootstrap/blob/master/spec/test-main.js" rel="nofollow"><code>test-main.js</code></a></p>
  
  <p>But I'm got the troubels when trying to run tests with command <code>grunt test</code>:</p>
  
  <pre>
  grunt test
  
  Running "karma:unit" (karma) task
  14 12 2015 15:06:17.594:WARN [karma]: No captured browser, open http://localhost:9876/
  14 12 2015 15:06:17.634:INFO [karma]: Karma v0.13.15 server started at http://localhost:9876/
  14 12 2015 15:06:17.644:INFO [launcher]: Starting browser PhantomJS
  14 12 2015 15:06:18.849:INFO [PhantomJS 1.9.8 (Windows 7 0.0.0)]: Connected on socket Gvi8xqI0lfbPEEOGAAAA with id 60807377
  PhantomJS 1.9.8 (Windows 7 0.0.0): Executed 0 of 0 ERROR (0.013 secs / 0 secs)
  </pre>
  
  <p>And on this message programm is stuck... Have someone useful advices???</p>
  
  <p>PS: I used this tutorial to use RequireJS with Karma tests: <a href="http://karma-runner.github.io/0.8/plus/RequireJS.html" rel="nofollow">http://karma-runner.github.io/0.8/plus/RequireJS.html</a></p>