We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f80cfa commit f18ed7dCopy full SHA for f18ed7d
lib/rerun.js
@@ -61,20 +61,16 @@ class CodeceptRerunner extends BaseCodecept {
61
}
62
63
64
- run(test) {
65
- const done = () => {
+ async run(test) {
+ event.emit(event.all.before, this);
66
+ try {
67
+ await this.runTests(test);
68
+ } catch (e) {
69
+ output.error(e.stack);
70
+ } finally {
71
event.emit(event.all.result, this);
72
event.emit(event.all.after, this);
- };
- event.emit(event.all.before, this);
- return this.runTests(test)
- .then(() => {
- this.teardown(done);
73
- })
74
- .catch((e) => {
75
76
- throw e;
77
- });
+ }
78
79
80
0 commit comments