Skip to content
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

Merged
merged 4 commits into from
May 26, 2023
Merged

Fix hermione repeat error #684

merged 4 commits into from
May 26, 2023

Conversation

epszaw
Copy link
Member

@epszaw epszaw commented May 19, 2023

Context

fixes #681

Additionally simplifies hermione package test process

Checklist

Sorry, something went wrong.

@epszaw epszaw added type:bug Something isn't working theme:hermione labels May 19, 2023
@epszaw epszaw requested review from baev and vovsemenv May 19, 2023 12:33
@@ -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);
Copy link
Contributor

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?

Copy link
Member Author

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

Copy link
Contributor

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.");
Copy link
Contributor

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

Copy link
Member Author

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?

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
@epszaw epszaw requested a review from vovsemenv May 25, 2023 16:04
Copy link
Contributor

@vovsemenv vovsemenv left a 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

@baev baev merged commit f38b1e8 into master May 26, 2023
@baev baev deleted the issue-681-fix-hermione-repeat-error branch May 26, 2023 09:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme:hermione type:bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allure-hermione deletes test and closes worker if test run with repeat using hermione-test-repeater
3 participants