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
|
||||
const ortoniReportConfig: OrtoniReportConfig = {
|
||||
open: "never",
|
||||
folderPath: 'playwright-tests/test-results',
|
||||
folderPath: process.env.CI? 'ortoni-report': 'test-results',
|
||||
title: "Test Report",
|
||||
filename: `ortoni_report_${formatDateForFilename(new Date())}.html`,
|
||||
showProject: false,
|
||||
|
|
@ -61,8 +61,8 @@ const jiraReportConfig: JiraReporterConfig = {
|
|||
jiraBoardId: process.env.JIRA_BOARD_ID || ''
|
||||
},
|
||||
jiraCreationPermissions: {
|
||||
isCreateTestSubtasks: false,
|
||||
isCreateBugs: false
|
||||
isCreateTestSubtasks: false, // TODO: Change back to process.env.IS_REGRESSION !== 'true',
|
||||
isCreateBugs: false // TODO: Change back to process.env.IS_REGRESSION !== 'true'
|
||||
},
|
||||
// Wrapped ortoni config
|
||||
...ortoniReportConfig
|
||||
|
|
|
|||
Loading…
Reference in a new issue