Closed szarlatan closed 9 months ago
Hello, we have faced the same problem while testing same setup.
The problem comes from the fact that test is not started when it.skip is used. As a result the code goes to reporter.ts and calls onTestSkip method which calls finishTest and it fails because the storage object missing information about the current test.
The fix which we tried locally seems to work on first look. We have changed the following method from reporter.ts
onTestSkip(testStats: TestStats): void {
this.finishTest(testStats);
}
to
onTestSkip(testStats: TestStats): void {
this.onTestStart(testStats);
this.finishTest(testStats);
}
and the test was successfully added as skipped in report portal. And the execution completed without any hanging.
@AmsterGet Please take a look on this change and if it does not affect anything else - feel free to apply it.
Fixed. Will be published in the scope of v5.0.4.
Hey there,
found a strange issue, that reporter breaks on
it.skip(...)
having WebdriverIO set up with Mocha (which seems quite popular pair).Installed versions agent-js-webdriverio:
^5.0.3
webdriverio:^7.30.2
Sample code
gives following output when run