Skip to content

Commit

Permalink
Bug extent-framework#17: Always outputs "Nothing to do"
Browse files Browse the repository at this point in the history
- Used HasFlag to check enum instead of ==
  • Loading branch information
Gregg Mattinson committed May 21, 2019
1 parent 06879e9 commit 584dc8f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ExtentReportsDotNetCLI/ExtentReportsDotNetCLI/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ private void OnExecute()

string output = string.IsNullOrWhiteSpace(Output) ? $".\\{DefaultBaseDirectory}" : Output;

if (!string.IsNullOrEmpty(TestRunnerResultsDirectory) && File.GetAttributes(TestRunnerResultsDirectory) == FileAttributes.Directory && Parser.Equals(TestFramework.NUnit))
if (!string.IsNullOrEmpty(TestRunnerResultsDirectory) &&
File.GetAttributes(TestRunnerResultsDirectory).HasFlag(FileAttributes.Directory) &&
Parser.Equals(TestFramework.NUnit))
{
string filePattern = "*." + KnownFileExtensions.GetExtension(Parser);
_logger.WriteLine(LoggingLevel.Normal, $"Getting test runner result files in folder '{TestRunnerResultsDirectory}' matching pattern '{filePattern}' ...");
Expand Down

0 comments on commit 584dc8f

Please sign in to comment.