Skip to content
Browse files

create test output dir if it doesn't exist

  • Loading branch information...
1 parent b302706 commit 5aa8f4d805164402ac4c02ff912666e71c37d1e7 @Arcadie Arcadie committed Sep 23, 2012
View
2 reportng/src/java/main/org/uncommons/reportng/HTMLReporter.java
@@ -100,7 +100,7 @@ public void generateReport(List<XmlSuite> xmlSuites,
boolean onlyFailures = System.getProperty(ONLY_FAILURES_PROPERTY, "false").equals("true");
File outputDirectory = new File(outputDirectoryName, REPORT_DIRECTORY);
- outputDirectory.mkdir();
+ outputDirectory.mkdirs();
try
{
View
2 reportng/src/java/main/org/uncommons/reportng/JUnitXMLReporter.java
@@ -63,7 +63,7 @@ public void generateReport(List<XmlSuite> xmlSuites,
removeEmptyDirectories(new File(outputDirectoryName));
File outputDirectory = new File(outputDirectoryName, REPORT_DIRECTORY);
- outputDirectory.mkdir();
+ outputDirectory.mkdirs();
Collection<TestClassResults> flattenedResults = flattenResults(suites);

0 comments on commit 5aa8f4d

Please sign in to comment.
Something went wrong with that request. Please try again.