2022-03-30 02:57:11 +00:00
/ * *
*
* Use this configuration file to set certain Allure options .
*
* /
2022-05-16 09:59:40 +00:00
// API_TEST_REPORT_DIR is the environment variable for the directory where you want the "allure-results" and "allure-report" folders to be generated in.
const { API _TEST _REPORT _DIR } = process . env ;
2022-03-30 02:57:11 +00:00
2022-05-16 09:59:40 +00:00
// If API_TEST_REPORT_DIR was specified, use it as the target for the "allure-results" directory.
if ( API _TEST _REPORT _DIR ) {
2022-03-30 02:57:11 +00:00
reporter . allure . setOptions ( {
2022-05-16 09:59:40 +00:00
targetDir : ` ${ API _TEST _REPORT _DIR } /allure-results ` ,
2022-03-30 02:57:11 +00:00
} ) ;
}