-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix hermione repeat error #684
Conversation
@@ -236,6 +248,7 @@ const hermioneAllureReporter = (hermione: Hermione, opts: AllureReportOptions) = | |||
currentTest.addLabel(LabelName.LANGUAGE, "javascript"); | |||
currentTest.addLabel(LabelName.FRAMEWORK, "hermione"); | |||
currentTest.addLabel(LabelName.THREAD, thread); | |||
currentTest.addParameter("browser", test.browserId); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we want to show browserId in report itself? is it id or human-readable name? maybe better to make it hidden?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think, it would be very useful to know, which browser has been used in the test because we can use many of then in one run at once
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, its really good if browserId is human-readable name. Thats my question
@@ -220,6 +228,10 @@ const hermioneAllureReporter = (hermione: Hermione, opts: AllureReportOptions) = | |||
}); | |||
}); | |||
hermione.on(hermione.events.TEST_BEGIN, (test) => { | |||
if (!test.sessionId) { | |||
throw new Error("Test session hasn't been started correctly! Check the driver availability."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we fail whole test execution on this error of this thing affects only reporter side??
I remember we discussed that reporting cannot fail executions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We do the same in the cucumber reporter. When session isn't initialized the reporter can't work correctly, so the error here looks reasonable from my side. What do you think, @baev?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code looks fine. Only conceptual question in thread above
Context
fixes #681
Additionally simplifies hermione package test process
Checklist