Skip to content

Allow setting description and attributes for suites #148

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

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

thomaswinkler
Copy link
Contributor

@thomaswinkler thomaswinkler commented Jan 15, 2023

Allow setting description and attributes for suites in the before() hook of a suite. This will enable users to improve test suite representation in Report Portal.

describe("suite", function () {
  before(() => {
    cy.setTestDescription("This suite does ...");
    cy.addTestAttributes([{ key: "attribute", value: "value" }]);
  });

  context("a sub suite", () => {
    before(() => {
      cy.setTestDescription("This is a suite inside a suite...");
      cy.addTestAttributes([{ key: "attribute", value: "value" }]);
    });

    it("test case", function () {
      cy.setTestDescription("This is a test case...");
      cy.addTestAttributes([{ key: "attribute", value: "value" }]);
    });
  });
});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants