Let me explain my scenario first:
- I have around 2000 tests to run, which take about 30 seconds in NUnit
- I want to find out what's taking the time
- I open Ants Profiler, and get it to profile the NUnit TestRunner, and load my test dll into the TestRunner
- I then run the tests...
However, running the tests whilst profiling takes a lot longer (about 5 minutes to run all the tests, rather than 30 seconds). When i look through the timings in Ants Profiler, it seems log4net is being called in a lot of places, which seems to be taking up the time.
So, this is my question: how do i stop log4net logging stuff when i'm running the tests in this manner?
I can find 3 config files:
- In the test dll folder, there's a config.log4net file. I've put <level value="OFF" /> in there, and deleted all the appender sections
- In the test runner folder, there's a nunit.exe.config, and a nunit-console.exe.config file - i've put <level value="OFF" /> in both of those.
- I can't find any config files to play with in the ants profiler folder.
None of this seems to work, looking through the profile results i can see log4net being called, and it's definitely calling methods to output the logging information.