(config, testRoot)
| 97 | } |
| 98 | |
| 99 | export const createOutputDir = (config, testRoot) => { |
| 100 | let outputDir |
| 101 | if (path.isAbsolute(config.output)) outputDir = config.output |
| 102 | else outputDir = path.join(testRoot, config.output) |
| 103 | |
| 104 | if (!fileExists(outputDir)) { |
| 105 | output.print(`creating output directory: ${outputDir}`) |
| 106 | mkdirp.sync(outputDir) |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | export async function autoExit() { |
| 111 | const timeout = parseInt(process.env.CODECEPT_AUTO_EXIT_TIMEOUT, 10) |
no test coverage detected