cucumber-playwright
cucumber-playwright copied to clipboard
Getting empty allure report
I am using cucumber-playwright with typescript framework and have followed same steps for generating allure report. After execution, allure-report folder is getting created but there is nothing inside data -> test-cases and i am getting "ALLURE REPORT UNKNOWN". I am using below dependencies:
"@cucumber/cucumber": "^8.7.0",
"playwright": "^1.26.0",
"allure-cucumberjs": "^2.0.0-beta.19",
Attaching relevant files for the reference. Please let me know if i am missing any detail.
I have also cloned the same code but allure-result folder is not getting generated.
https://github.com/Tallyb/cucumber-playwright#to-choose-a-reporter
Hi Tallyb, Thank you for your reply! I have already used USE_ALLURE=1 in test.yml file as an env parameter and then using "npx cucumber-js && npm run allure" to execute the test but getting report with 0 test cases. It says Allure Report Unknown. Please let me know if any additional dependency is required.
did you make sure allure is installed? does it work locally?


Hi @Tallyb , Please help me with this issue.
The error is quite clear: no directory. Create the reports/allure-results folder
Hi @Tallyb ,
Already tried creating allure-results folder. allure-results is empty, and getting the same issue of 0 test cases.
Note : I have cloned https://github.com/Tallyb/cucumber-playwright repo and tried executing the code.
Is the folder in the comment fill? Any chance it is folder permissions?
You mean Allure-Report folder? It looks like this. I do not see any permission issue
I just checked allure-report in finder. It looks like this. I created a new folder in "allure-report" locally, so it does not look like permission issue.
Hi @Tallyb ,
Anything that i can try for resolving this issue?
Hi @Tallyb,
Please suggest if you have any resolution, it is bit urgent.
The problem is solved by installing dotenv and including import dotenv from "dotenv"; dotenv.config(); because apparently it was not reading the configuration made in the .env
The problem is solved by installing dotenv and including import dotenv from "dotenv"; dotenv.config(); because apparently it was not reading the configuration made in the .env
Those who are using .env file should follow @javillegas2 steps mentioned above and for others pass the CLI option as
USE_ALLURE=1 npm test
(Mac & Linux)
set USE_ALLURE=1&&npm test
(Windows)
or update npm scripts in package.json as
"test": "USE_ALLURE=1 cucumber-js",
(Mac & Linux)
"test": "set USE_ALLURE=1&&cucumber-js",
(Windows)