               type: 'text'
             template: jasmineRequireTemplate
             templateOptions:
-              requireConfigFile: 'src/test/js/js-test-require-config.js'
+              requireConfigFile: testRequireConfig
               requireConfig:
                 config:
                   instrumented: {
-                    src: grunt.file.expand('src/main/exports/javascript-utils/js/**/*.js')
+                    src: grunt.file.expand(sourcePath)
                   }
                 callback: () ->
                   define('instrumented', ['module'], (module) ->


    jshint:
      all: [
        'src/main/exports/javascript-utils/js/**/*.js'
        'src/test/js/mock/*.js'
        'src/test/js/spec/*.js'
        'src/test/js/*.js'

  jasmineSpecRunner = 'spec-runner.html'
  coverageSpecRunner = 'coverage-runner.html'

  sourcePath = 'src/main/exports/javascript-utils/js/**/*.js'

  testRequireConfig = 'src/test/js/js-test-require-config.js'
  specs = 'src/test/js/spec/**/*.js'
  styles = 'src/test/css/bootstrap-stub.css'
  serverPort = 8000
  host = "http://localhost:#{serverPort}/"

  grunt.initConfig
    pkg: grunt.file.readJSON 'package.json'
    clean: [
      jasmineSpecRunner
      coverageSpecRunner
      'bin'
      '.grunt'
    ]
    connect:
      server:
        options:
          port: serverPort
    jasmine:
      test:
        src: sourcePath
        options:
          host: host
          keepRunner: true
          outfile: jasmineSpecRunner
          specs: specs
          styles: styles
          template: jasmineRequireTemplate
          templateOptions:
            requireConfigFile: testRequireConfig
      coverage:
        src: sourcePath
        options:
          host: host
          keepRunner: true
          outfile: coverageSpecRunner
          specs: specs
          styles: styles
          template: jasmineIstanbulTemplate
          templateOptions:
            coverage: 'bin/coverage/coverage.json'
