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

Add allure-playwright #296

Closed
pavelfeldman opened this issue Jul 16, 2021 · 3 comments · Fixed by #297
Closed

Add allure-playwright #296

pavelfeldman opened this issue Jul 16, 2021 · 3 comments · Fixed by #297

Comments

@pavelfeldman
Copy link
Contributor

There is a popular request for Allure reporting at microsoft/playwright#7034.

I have it working locally, it is only ~120 lines of code. Are you interested in a PR that adds it here?

@sseliverstov
Copy link
Collaborator

@pavelfeldman It will be very good, tnx!

@kshrestha99
Copy link

@pavelfeldman Thank you for implementing the allure reporting to playwright! Its fantastic! My only question is regarding the location of the allure-reports and allure-results, which goes by default to the root of my project. I am using playwright.config.ts file where I declare the reporter. I did not understand how to use ALLURE_RESULTS_DIR as a environment variable. Can someone please help me out?

@baev baev closed this as completed in #297 Aug 6, 2021
@hananmalka
Copy link

@pavelfeldman Thank you for implementing the allure reporting to playwright! Its fantastic! My only question is regarding the location of the allure-reports and allure-results, which goes by default to the root of my project. I am using playwright.config.ts file where I declare the reporter. I did not understand how to use ALLURE_RESULTS_DIR as a environment variable. Can someone please help me out?

Take a look here:
https://github.com/allure-framework/allure-js/blob/master/packages/allure-playwright/README.md
It mentioned that you should use the env variable in the command line of executing the tests:
ALLURE_RESULTS_DIR=my-allure-results npx playwright test --reporter=line,allure-playwright

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 a pull request may close this issue.

4 participants