-
Notifications
You must be signed in to change notification settings - Fork 152
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
InternalTraceLevel.Default turns on logging #1322
Comments
Confirmed this is still an issue as for nunit.engine 3.16.3. It's problematic when an executable is run from C:\Program Files, which of course doesn't (and shouldn't) have write permissions. |
@estrizhok The int value of FWIW, there's a cleaner fix for this in the 4.0 codebase, which I was not able to implement in the 3.x branch. @butterworld The default setting for where result and log files are saved is based on the current directory at the time of execution not the location of the executable, so it's actually in control of the runner. Of course, there are also options to have them saved elsewhere. |
@butterworld @estrizhok This should be fixed with adapter 4.4.2. It uses an embedded engine based on the 3.15.2 code, a 3.15.3-ish version. I will try to get that released asap. |
This has been an issue in several releases and been "fixed" several times in the past. It doesn't seem to be in the current main and version3X branches any longer. |
As mentioned in this issue, NUnit3TestAdapter 4.3.0 causes empty log files to be created on every discovery/execution in either solution directory, if tests in question target .NETCore, or in bin directory, if it is old .NETFramework.
Now, version 4.3.1 of the adapter when running tests using Visual Studio runner does not have this problem as promised. However, the root cause does not seem to have been fixed:
NUnit.Engine.TestEngine
turns on logging during initialization ifInternalTraceLevel
is notOff
. And the default value for this property isDefault
, causing empty log files creation when running tests using R#/Rider.We can, of course, set trace level explicitly to
Off
, as - it seems - has been done in the VS adapter. But I have a feeling that turning on empty log file creation by default on everyTestEngine
initialization is probably a bug.nunit.engine 3.15.2.0
The text was updated successfully, but these errors were encountered: