I am using allure reporting in my cypress , but after the execution I could see only the allure report folder getting generated but the allure results folder is not generated.
Configuration made in my code as below:
plugins/index.js
/// <reference types="@shelex/cypress-allure-plugin" />
const allureWriter = require("@shelex/cypress-allure-plugin/writer");
module.exports = (on, config) => {
allureWriter(on, config);
return config;
};
support/index.js
import '@shelex/cypress-allure-plugin';
in package.json
"allure:report": "allure generate allure-results --clean -o allure-report",
"allure:clear_results":"(if exist allure-results (rmdir /S /Q allure-results))",
"allure:clear_report":" (if exist allure-report (rmdir /S /Q allure-report))",
"precy-run": "yarn run allure:clear_results && yarn run allure:clear_report",
"cy-run": "cypress run --env allure=true",
"postcy-run": "yarn run allure:report",
output in terminal
$ allure generate allure-results --clean -o allure-report
allure-results does not exist
Report successfully generated to allure-report
I tried viewing the report in live server in VS code
