I am using the latest 5.x ReSharper plugin with NUnit 2.5.10. When using Log4Net to record some events for testing purposes, the results are displayed in the ReSharper test window, but are not displayed when using the NUnit console console runner (performed as part of our build processes). I tried to provide the NUnit .config file in the same place as the .nunit configuration file with the LogLevelThreshold parameter set to DEBUG, but it still wonβt log the actual test information either in the output file or in the text box in the NUnit GUI, I am a little fixated at this stage, is there a way to get the two synchronized in what is displayed on the test output? Thanks!
Incoming configurations:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <sectionGroup name="NUnit"> <section name="TestCaseBuilder" type="System.Configuration.NameValueSectionHandler"/> <section name="TestRunner" type="System.Configuration.NameValueSectionHandler"/> </sectionGroup> </configSections> <NUnit> <TestRunner> <add key="DefaultLogThreshold" value="DEBUG" /> </TestRunner> </NUnit> </configuration>
And another configuration:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /> </configSections> <log4net debug="false"> <appender name="console" type="log4net.Appender.ConsoleAppender, log4net"> <layout type="log4net.Layout.PatternLayout, log4net"> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> </layout> </appender> <appender name="DebugAppender" type="log4net.Appender.DebugAppender, log4net"> <layout type="log4net.Layout.PatternLayout, log4net"> <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p %c{1}:%L - %m%n" /> </layout> </appender> <root> <level value="DEBUG" /> <appender-ref ref="console" /> </root> <logger name="NHibernate"> <level value="INFO" /> </logger> <logger name="NHibernate.SQL"> <level value="DEBUG" /> </logger> </log4net> </configuration>
Thanks in advance for your help.
source share