microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.45k stars 3.63k forks source link

[Feature] [test-runner] add annotation for allure-report #9128

Closed Belisckner closed 2 years ago

Belisckner commented 3 years ago

in #8221 already mention annotation and group for allure reports. But closed issue and maked only steps.

Is it possible to add some annotations or methods for customizing the Allure report? It will help with link test in TMS (testops or etc.) with autotest.

it already make for mocha and some other frameworks (as example allure-typescript-mocha) In playwright it may be as other annotations (test.skip(), test.slow())

test('test name', async ({ page }) => {
    test.allure.story('story name')
    test.allure.epic('epic name')
    test.allure.issue(
          "issue-12",
          "https://github.com/allure-examples/allure-examples/issues/12"
        );
})
mxschmitt commented 2 years ago

This seems possible now see (https://github.com/allure-framework/allure-js/pull/408)

see here: https://github.com/allure-framework/allure-js/blob/master/packages/allure-playwright/README.md