Updates test report folder path
Updates the folder path for test reports to be 'ortoni-report' in CI environments, otherwise defaults to 'test-results'. The conditional logic ensures that test results are stored in a dedicated 'ortoni-report' folder during CI runs, enabling more manageable reports. The changes related to jiraCreationPermissions are commented out as TODOs and will be changed back in the future.
This commit is contained in:
parent
ca4c50f01a
commit
2e514c8671
1 changed files with 3 additions and 3 deletions
|
|
@ -37,7 +37,7 @@ if (!process.env.CI) {
|
||||||
// Ortoni config
|
// Ortoni config
|
||||||
const ortoniReportConfig: OrtoniReportConfig = {
|
const ortoniReportConfig: OrtoniReportConfig = {
|
||||||
open: "never",
|
open: "never",
|
||||||
folderPath: 'playwright-tests/test-results',
|
folderPath: process.env.CI? 'ortoni-report': 'test-results',
|
||||||
title: "Test Report",
|
title: "Test Report",
|
||||||
filename: `ortoni_report_${formatDateForFilename(new Date())}.html`,
|
filename: `ortoni_report_${formatDateForFilename(new Date())}.html`,
|
||||||
showProject: false,
|
showProject: false,
|
||||||
|
|
@ -61,8 +61,8 @@ const jiraReportConfig: JiraReporterConfig = {
|
||||||
jiraBoardId: process.env.JIRA_BOARD_ID || ''
|
jiraBoardId: process.env.JIRA_BOARD_ID || ''
|
||||||
},
|
},
|
||||||
jiraCreationPermissions: {
|
jiraCreationPermissions: {
|
||||||
isCreateTestSubtasks: false,
|
isCreateTestSubtasks: false, // TODO: Change back to process.env.IS_REGRESSION !== 'true',
|
||||||
isCreateBugs: false
|
isCreateBugs: false // TODO: Change back to process.env.IS_REGRESSION !== 'true'
|
||||||
},
|
},
|
||||||
// Wrapped ortoni config
|
// Wrapped ortoni config
|
||||||
...ortoniReportConfig
|
...ortoniReportConfig
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue