1

ジャスミンと一緒にジャスミン種を使用してい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 '.

私のテストに問題がありますか、それとも他に何かありますか

前もって感謝します 。

4

1 に答える 1

1

これは Visual Studio を再起動したときの問題でした。それは自動的にすべてのものを修正します。

于 2013-05-29T07:54:36.267 に答える