JasmineをVisual Studioテストエクスプローラで使用するようにしようとしています。 だから、私のテストファイルはこのように見えた:私はテストが正常に動作ブラウザで開くとAngularJS、JasmineおよびVisual Studio 2015テストエクスプローラ
/// <reference path="../wwwroot/lib/angular/angular.min.js" />
/// <reference path="../wwwroot/lib/angular-mocks/angular-mocks.js" />
/// <reference path="../wwwroot/lib/jasmine/lib/jasmine-core/jasmine.js" />
/// <reference path="../wwwroot/lib/angular-arrays/dist/angular.arrays.js" />
/// <reference path="../wwwroot/lib/angular-simple-cache/dist/simplecache.js" />
/// <reference path="../wwwroot/lib/angular-toastr/dist/angular-toastr.tpls.min.js" />
/// <reference path="../wwwroot/lib/ng-file-upload/ng-file-upload.min.js" />
/// <reference path="../app/common/common.js" />
/// <reference path="../app/common/services.js" />
var _sharedProductHandler,
_pricingProducts,
_availabilityProducts;
beforeEach(module('piiick.common'));
beforeEach(inject(['SharedProductHandler', function (sharedProductHandler) {
_sharedProductHandler = sharedProductHandler;
_pricingProducts = [{
productId: 0
}];
_availabilityProducts = [{
productId: 0
}];
}]));
describe('Service: SharedProductService', function() {
it('We have a list of pricing products', function() {
expect(_pricingProducts.length).toBeGreaterThan(0);
});
it('We have a list of availability products', function() {
expect(_availabilityProducts.length).toBeGreaterThan(0);
});
});
。しかし、私はそれらをテストエクスプローラに表示します。私はテストエクスプローラ用のChutzpahアダプタをインストールしましたが、テストは表示されません。 I read that you can use a chutzpah.json file to add settingsだから私はそれをしましたが、テストエクスプローラにテストを表示することができません。 私はVisual Studio 2015を使用していることに言及する価値があると思います。
テストエクスプローラでテストを表示する方法を知っている人はいますか?
あなたはそれを理解してうれしい! –