Skip to content

Commit

Permalink
Fix html report error when output folder doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaslorentz committed Feb 12, 2018
1 parent 089d8d4 commit a3308d4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MiniCover/Reports/HtmlReport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ protected override void WriteFooter(int lines, int coveredLines, float coverageP
result.AppendLine("</body>");
result.AppendLine("</html>");

Directory.CreateDirectory(_output);
var fileName = Path.Combine(_output, "index.html");
using (var htmlWriter = (TextWriter)File.CreateText(fileName))
{
Expand Down

0 comments on commit a3308d4

Please sign in to comment.