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

Existing test result files are not cleared #76

Closed
tkohlmeier opened this issue Mar 10, 2021 · 3 comments · Fixed by spekt/testlogger#18
Closed

Existing test result files are not cleared #76

tkohlmeier opened this issue Mar 10, 2021 · 3 comments · Fixed by spekt/testlogger#18

Comments

@tkohlmeier
Copy link

tkohlmeier commented Mar 10, 2021

When running a test with an existing test result file, the old content is not cleared. The new content is written into the old file, overwriting characters that have been there before.

Example:

Old file content:

example
content
bla

New results:

new example
test

This results in:

new example
testent
bla

Not sure if this is a problem of nunit.testlogger or .NET Core.

@codito
Copy link
Collaborator

codito commented Mar 10, 2021

@tkohlmeier this appears to be a regression. I will create a fix shortly.

@codito
Copy link
Collaborator

codito commented Mar 10, 2021

Pushed a fix to nuget: v3.0.97. Please try it out. Thank you for reporting this issue.

@codito codito closed this as completed Mar 10, 2021
This was referenced Mar 11, 2021
@tkohlmeier
Copy link
Author

I can confirm that the issue is fixed with the current version. Thanks for fixing this so quickly!

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

Successfully merging a pull request may close this issue.

2 participants