ジャスミンと一緒にジャスミン種を使用していGWT
ます。
私はこのようなテストを書きました
feature('checking spy', function() {
summary(
'In order to check how spy work ',
'I should have a class on which i can work '
);
scenario('Spy should tell me function is called or not ', function() {
given('A Class to work on ', function() {
window.signInObj = new SignIn();
});
when('I Spy on a function and call it ', function() {
spyOn(signInObj, "fillForm");
signInObj.fillForm("world",'hello');
});
then('Spy Should tell me that function is called or not', function() {
expect(signInObj.fillForm).toHaveBeenCalled();
});
});
});
vsのテストエクスプローラーでこのテストを実行しようとすると、これが表示されます
Test adapter sent back a result for an unknown test case. Ignoring result for 'Feature: checking spy Scenario: Spy should tell me function is called or not '.
私のテストに問題がありますか、それとも他に何かありますか
前もって感謝します 。