Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable generating nunit-agent log file when running tests with nunit3-console

I have a question regarding the nunit3-console. When running tests through it I am observing a generation of log files like internal-trace and nunit-agent text files.

I was able to disable the generation of the internal-trace with the --trace=off option but for each run having the test .dll specified I am noticing a nunit-agentNumber.txt file generated.

My question is, is this a problem? More specifically for CI/CD and is there an option to disable this? Or clean it at least after each run.

like image 232
ciconq Avatar asked Oct 19 '25 04:10

ciconq


1 Answers

Version 3.15 of the engine introduced a new internal feature, allowing code to change the level of debugging dynamically. (Not yet exposed to users, but intended to be eventually)

As a side effect, it looks as if empty log files are being created. For the moment, the only way to avoid this is to go back to the previous release.

A fix was created in the development code for version 4.0, but has not been ported back to the version 3 code. A bug report might help with that. :-)

like image 168
Charlie Avatar answered Oct 22 '25 05:10

Charlie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!