🌐 AI搜索 & 代理 主页
Skip to content

Conversation

@epszaw
Copy link
Member

@epszaw epszaw commented Jun 6, 2023

Context

fixes #653

Checklist

@epszaw epszaw added type:bug Something isn't working theme:hermione labels Jun 6, 2023
@epszaw epszaw marked this pull request as ready for review June 7, 2023 10:01
@epszaw epszaw requested review from baev and vovsemenv June 7, 2023 10:01
describe("with skip", () => {
it.skip("should be skipped", () => {});
});

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe we also need fixture for the describe.skip?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They actually have problem with tests only, let's keep this implementation only for tests and add suites handling later

hermione.on(hermione.events.AFTER_TESTS_READ, (collection) => {
// cache all the tests to handle skipped tests in future
collection.eachTest((test) => {
loadedTests.set(test.fullTitle(), test);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test.fullTitle() is not unique value
this two tests have same fullTitle

describe("desc", function () {
  it("it", () => {});
  it("it", () => {});
});

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

const hostname = os.hostname();

const hermioneAllureReporter = (hermione: Hermione, opts: AllureReportOptions) => {
const loadedTests = new Map<string, Hermione.Test>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't really need Map in this case. Lets use Set maybe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make id's uniq, but keep Map

@epszaw epszaw requested a review from vovsemenv June 15, 2023 13:35
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.

Lestgooo

@baev baev merged commit 8e9d28c into master Jun 16, 2023
@baev baev deleted the issue-653-hermione-skip-tests branch June 16, 2023 08:37
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.

Skipped hermione tests marked as Unknown in allure report

4 participants