fixed cannot chain sync and async tests
Showing
1 changed file
with
3 additions
and
2 deletions
... | @@ -709,13 +709,14 @@ Tester.prototype.begin = function begin(description, suiteFn) { | ... | @@ -709,13 +709,14 @@ Tester.prototype.begin = function begin(description, suiteFn) { |
709 | "use strict"; | 709 | "use strict"; |
710 | description = description || "Untitled suite in " + this.currentTestFile; | 710 | description = description || "Untitled suite in " + this.currentTestFile; |
711 | this.comment(description); | 711 | this.comment(description); |
712 | this.executed = 0; | ||
713 | this.currentSuite = new TestSuiteResult({ | 712 | this.currentSuite = new TestSuiteResult({ |
714 | name: description, | 713 | name: description, |
715 | file: this.currentTestFile | 714 | file: this.currentTestFile |
716 | }); | 715 | }); |
716 | this.executed = 0; | ||
717 | this.running = true; | ||
717 | try { | 718 | try { |
718 | suiteFn.call(this, this.casper); | 719 | suiteFn.call(this, this, this.casper); |
719 | } catch (e) { | 720 | } catch (e) { |
720 | this.uncaughtError(e, this.currentTestFile, e.line); | 721 | this.uncaughtError(e, this.currentTestFile, e.line); |
721 | this.done(); | 722 | this.done(); | ... | ... |
-
Please register or sign in to post a comment