Getting more information about error in CucumberTestObserver #94
Replies: 2 comments
-
|
@Tyler-Keith-Thompson , please, any idea? 🙏 |
Beta Was this translation helpful? Give feedback.
0 replies
-
var errorMessage: String?;
func didFinish(scenario: Scenario, result: Reporter.Result, duration: Measurement<UnitDuration>) {
// previous code + calling errorMessage
}
public func didFinish(step: Step, result: Reporter.Result, duration: Measurement<UnitDuration>) {
switch result {
case .failed(let description):
errorMessage = description
default:
break
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
vojtech-cerveny
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I am writing own TestReporter - I want to send data into Kibana and it would be nice to have more information about error, if test fails, not just info, that test fails. I am using
didFinishfunction and it doesn't provide this kind of information.Is it somehow possible in current version?
I have something like that
Beta Was this translation helpful? Give feedback.
All reactions