netfengxia / js-test-driver

Automatically exported from code.google.com/p/js-test-driver
0 stars 0 forks source link

Eclipse Plugin JsTestDriver View Does Not Clear Errors From Previous Run #414

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Context: Using the Jasmine 1.3.1 Adapter

What steps will reproduce the problem?
1.  Configure jsTestDriver.conf to recognize both the Jasmine library and jstd 
adapter:

load:
  - lib/jasmine.js
  - lib/JasmineAdapter.js

2.  Create a jasmine test that will pass.

describe("Panda", function() {
    var panda = "happy";

    it("is happy", function() {
        expect(panda).toBe("happy");
    });
});

3.  Run the test.  JsTestDriver eclipse view displays a green bar as expected.

4.  Edit the test such that it will fail.

describe("Panda", function() {
    var panda = "happy";

    it("is happy", function() {
        expect(panda).toBe("h appy");
    });
});

5.  Run the test.  JsTestDriver eclipse view displays a red bar, the number of 
failing tests (i.e., 1) and the appropriate error message as expected.

Error: Expected 'happy' to be 'h appy'.

            Error: Expected 'happy' to be 'h appy'.

6. Restore the test to a passing state.

7.  Run the test.  JsTestDriver eclipse view displays should display a green 
bar with the zero as the number of failing tests.  However, it displays a red 
bar, retains the previous error message (in item 5), but displays the number of 
failing tests as zero.

What version of the product are you using? On what operating system?

JsTestDriver Eclipse Plugin: 1.3.4e
OS: Windows 7
Eclipse: Juno Service Release 1, Build id: 20120920-0800
Browsers: Chrome Version 23.0.1271.95 m, IE8 Version: 8.0.7601.17514

Please provide any additional information below.

Original issue reported on code.google.com by chris.r....@gmail.com on 10 Dec 2012 at 5:43