Skip to content

Commit 8000592

Browse files
Lee EggebrotenJohn Doherty
authored andcommitted
Ensure the reports directory exists
1 parent 3ab7745 commit 8000592

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

index.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ global.pageObjectPath = path.resolve(program.pageObjects);
5252

5353
// used within world.js to output reports
5454
global.reportsPath = path.resolve(program.reports);
55+
if (!fs.existsSync(program.reports)){
56+
fs.makeTreeSync(program.reports);
57+
}
5558

5659
// used within world.js to decide if reports should be generated
5760
global.disableLaunchReport = (program.disableLaunchReport);

0 commit comments

Comments
 (0)