2017-01-17 7 views
0

に私はPhpStormを使用し、ここに私* .TSはPhpStorm/WebStorm

のためのカルマのテストを実行したいんだ、単一のカルマのテストを実行すると、私はカルマ「実行/デバッグの構成を有していて、私のkarma.config.js

// Karma configuration 
// Generated on Mon Jan 16 2017 13:32:24 GMT+0100 (Środkowoeuropejski czas stand.) 
var webpackConfig = require('./webpack.config.js'); 
var webpack = require('webpack'); 

module.exports = function (config) { 
    config.set({ 
     basePath: '', 
     frameworks: ['mocha', 'chai', 'sinon', 'fixture'], 
     files: [ 
      'spec/**/*.spec.ts', 
      'spec/fixtures/**/*.html', 
     ], 
     exclude: [], 
     webpack: { 
      module: webpackConfig.module, 
      resolve: webpackConfig.resolve, 
      plugins: [ 
       new webpack.ProvidePlugin({ 
        $: "jquery", 
        jQuery: "jquery", 
        "window.jQuery": "jquery", 
        Tether: 'tether', 
        "window.Tether": 'tether' 
       }) 
      ], 
     }, 
     preprocessors: { 
      "spec/**/*.ts": ['webpack'], 
      'spec/**/*.html': ['html2js'], 
      'spec/**/*.json': ['json_fixtures'] 
     }, 
     reporters: ['progress'], 
     port: 9876, 
     colors: true, 
     logLevel: config.LOG_INFO, 
     autoWatch: true, 
     browsers: ['PhantomJS'],//, 'Chrome'], 
     singleRun: false, 
     concurrency: Infinity 
    }) 
}; 

ですすべてのテストが実行されます。しかし、PHPUnitのように、テストを右クリックして単一のテストを実行したいと思います。

スクリーンショット:

enter image description here

しかし、私はエラーしている:私は間違って何を

enter image description here

をやっている - PhpStormで単一のテストを使用する方法?

答えて