title: How to start jasmine tests with grunt?
body: <p>I want to create a grunt task for running jasmine tests automatically when the code changed. For AMD support I installed <a href="https://github.com/cloudchen/grunt-template-jasmine-requirejs" rel="nofollow">grunt-template-jasmine-requirejs</a>. I added these lines to my gruntfile:</p>
  
  <pre><code>connect: {
      test : {
          port : 8000
      }
  },
  
  jasmine: {
      jasmine_tests: {
          src: 'src/**/*.js',
          options: {
              specs: 'spec/*Spec.js',
              helpers: 'spec/*Helper.js',
              host: 'http://127.0.0.1:8000/',
              template: require('grunt-template-jasmine-requirejs'),
              templateOptions: {
                  requireConfigFile: 'public/js/app/config/config.js'
              }
          }
      }
  },
  </code></pre>
  
  <p>Now I try to start my tests by typing <code>grunt jasmine</code>. But all I get is this:</p>
  
  <blockquote>
    <p>Running "jasmine:jasmine_tests" (jasmine) task</p>
    
    <p>Testing jasmine specs via PhantomJS</p>
    
    <p>Warning: PhantomJS failed to load your page. Use --force to continue.</p>
    
    <p>Aborted due to warnings.</p>
  </blockquote>
  
  <p>What could be wrong there?</p>
  
  <p>My directory structure:</p>
  
  <pre><code>- website3
      - .grunt
          + grunt-contrib-jasmine
      + node_modules
      - public
          - js
              - app
                  + collections
                  - config
                      &gt; config.js
                  + ...
                  - views
                      + ...
                      &gt; AddVehicleView.js
                      &gt; ...
          + libs
          &gt; index.html
      + server
      - spec
          + helpers
          - support
              &gt; jasmine.json
          &gt; AddVehicleViewSpec.js
      &gt; .bowerrc
      &gt; ...
      &gt; _SpecRunner.html
      &gt; Gruntfile.js
      &gt; package.json
  </code></pre>