Skip to content

Commit

Permalink
test: remove redundant tests
Browse files Browse the repository at this point in the history
  • Loading branch information
delatrie authored and baev committed Jan 9, 2025
1 parent 9653d96 commit 672cff5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 160 deletions.
31 changes: 0 additions & 31 deletions packages/reader/test/allure1.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,37 +72,6 @@ describe("allure1 reader", () => {
);
});

it("should parse name and status", async () => {
const visitor = await readResults(allure1, {
"allure1data/sample-testsuite.xml": randomTestsuiteFileName(),
});

expect(visitor.visitTestResult).toHaveBeenCalledTimes(4);

const trs = visitor.visitTestResult.mock.calls.map((c) => c[0]);

expect(trs).toMatchObject(
expect.arrayContaining([
expect.objectContaining({ name: "testOne", status: "passed" }),
expect.objectContaining({ name: "testTwo", status: "passed" }),
expect.objectContaining({ name: "testThree", status: "passed" }),
expect.objectContaining({ name: "testFour", status: "passed" }),
]),
);
});

it("should parse file with single test case", async () => {
const visitor = await readResults(allure1, {
"allure1data/single.xml": randomTestsuiteFileName(),
});

expect(visitor.visitTestResult).toHaveBeenCalledTimes(1);

const trs = visitor.visitTestResult.mock.calls.map((c) => c[0]);

expect(trs).toMatchObject(expect.arrayContaining([expect.objectContaining({ name: "testOne", status: "passed" })]));
});

describe("name", () => {
it("should prefer a title", async () => {
const visitor = await readResults(allure1, {
Expand Down
53 changes: 0 additions & 53 deletions packages/reader/test/resources/allure1data/sample-testsuite.xml

This file was deleted.

22 changes: 0 additions & 22 deletions packages/reader/test/resources/allure1data/single.xml

This file was deleted.

This file was deleted.

0 comments on commit 672cff5

Please sign in to comment.