Assuming it's actually a memory issue, --dispose-runners won't help.
If you are running tests in a single process, then there is only one
runner, in the sense that the word is intended, and it is disposed of
when the program ends. The option is primarily intended for situations
in which multiple assemblies are loaded into different agent
processes.
I suggest running some experiments to discover whether the problem is
really one of memory and if so where it occurs. I think you are
correct in thinking that the source of the problem is probably in the
tests themselves. You should be aware that a test may be leaking
memory at the time it is loaded as well as during its execution.
Simply not running a particular test will not prevent the leak if it
occurs at load time - the only way test for that is to remove the
test's code entirely as an experiment.
One thing you could try is running your tests under NUnitLite. Convert
the test assembly to an exe and give it a main as explained in our
docs. That avoids loading most of NUnit. If it results in a
significant improvement, it will tell us that the problem is at least
partly in NUnit itself.
Charlie
> --
> You received this message because you are subscribed to the Google Groups
> "NUnit-Discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
nunit-discus...@googlegroups.com.
> To post to this group, send email to
nunit-...@googlegroups.com.
> Visit this group at
https://groups.google.com/group/nunit-discuss.
> For more options, visit
https://groups.google.com/d/optout.