woocommerce/packages/js/api-core-tests/allure.config.js

16 lines
498 B
JavaScript
Raw Normal View History

2022-03-30 02:57:11 +00:00
/**
*
* Use this configuration file to set certain Allure options.
*
*/
// 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
// 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( {
targetDir: `${ API_TEST_REPORT_DIR }/allure-results`,
2022-03-30 02:57:11 +00:00
} );
}