nunit-console icon indicating copy to clipboard operation
nunit-console copied to clipboard

--output outputs empty file?

Open WindingWinter opened this issue 2 years ago • 3 comments

Here's my Nunit3 console command:

nunit3-console.exe "%slnfile%" /config:Debug --skipnontestassemblies --out="%outputtext%"

And although %outputtext% is created, but there is no content in it ( despite that I do see some content on the Console screen).

Is --output command line parameter working?

WindingWinter avatar Dec 02 '22 01:12 WindingWinter

Sorry it's taken a bit for you to get a response @WindingWinter .This question may be better suited for the audience in the console runner repo (https://github.com/nunit/nunit-console), but can you explain what you're seeing on the console which you would expect to see in the output file but aren't? I believe %outputtext% here would only only output text which is explicitly written out from within the test itself. If you're instead only interest in the test results themselves, --result may be what you're looking for.

It may also help to understand what version of the console runner you are using.

stevenaw avatar Dec 22 '22 18:12 stevenaw

I've transferred this to the nunit-console repository. Which version of the console are you using @WindingWinter ? and can you create a small project that shows the problem.

mikkelbu avatar Dec 22 '22 21:12 mikkelbu

Not enough info here yet to accept this as an issue. Need version of console runner and package type from which it was installed, version of VS project loader extension, which would be required in order to run from a solution file, more explicit info about what you expected to see versus what you are actually seeing output.

CharliePoole avatar Dec 22 '22 22:12 CharliePoole