1

我正在使用 Jasmine-Species 和 jasmine for 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();
    });

});
});

当我尝试在测试资源管理器中运行此测试时,它给了我这个

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 回答