Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always outputs "Nothing to do" #17

Open
gmattinson opened this issue May 6, 2019 · 0 comments
Open

Always outputs "Nothing to do" #17

gmattinson opened this issue May 6, 2019 · 0 comments

Comments

@gmattinson
Copy link

No matter what I tried, I could not get extent.exe to output anything other than "Nothing to do." When debugging, I discovered that File.GetAttributes was returning more flags than just Directory. Using HasFlag on Program.cs line 55 fixed it:

        if (!string.IsNullOrEmpty(TestRunnerResultsDirectory) &&
            File.GetAttributes(TestRunnerResultsDirectory).HasFlag(FileAttributes.Directory) &&
            Parser.Equals(TestFramework.NUnit))
gmattinson pushed a commit to gmattinson/extentreports-dotnet-cli that referenced this issue May 21, 2019
- Used HasFlag to check enum instead of ==
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant