Untitled
unknown
plain_text
10 months ago
1.6 kB
11
Indexable
import { defineConfig } from "cypress";
import { afterSpecHook } from "cypress-qase-reporter/hooks";
import { createRequire } from "node:module";
const require = createRequire(import.meta.url);
export default defineConfig({
reporter: "cypress-multi-reporters",
reporterOptions: {
reporterEnabled: "cypress-mochawesome-reporter, cypress-qase-reporter",
cypressMochawesomeReporterReporterOptions: {
charts: true,
},
cypressQaseReporterReporterOptions: {
debug: true,
mode: "testops", // Qase mode
includeAllCases: true, // Include all test cases
testops: {
api: {
token: "" , // Your Qase API token
},
project: "NT", // Replace with your project code
uploadAttachments: true,
run: {
complete: true,
},
},
framework: {
cypress: {
screenshotsFolder: "cypress/screenshots",
videosFolder: "cypress/videos",
uploadDelay: 10,
},
},
},
},
screenshotOnRunFailure: true,
e2e: {
specPattern: "cypress/e2e/**/*.cy.{js,ts}",
supportFile: false, // or "cypress/support/index.js" if you have one
setupNodeEvents(on, config) {
// Register Qase reporter
require("cypress-qase-reporter/plugin")(on, config);
require("cypress-qase-reporter/metadata")(on);
// Hook to send test results
on("after:spec", async (spec, results) => {
await afterSpecHook(spec, config);
});
return config;
},
},
});
Editor is loading...
Leave a Comment