Capture ASP.NET "Application Lifetime Events" in SpecFlow test logs

This should help diagnose why some of the tests occasionaly fail
with an "AppDomainUnloaded" exception.

--HG--
branch : dev
This commit is contained in:
Renaud Paquay
2010-12-14 22:59:39 -08:00
parent 8935efc96c
commit 2f7315b446
2 changed files with 22 additions and 1 deletions

View File

@@ -1,5 +1,10 @@
<system.diagnostics>
<trace autoflush="true"/>
<trace autoflush="true">
<listeners>
<!-- Capture Trace messages from ASP.NET TraceWebEventProvider -->
<add name ="CaptureTraceMessages"/>
</listeners>
</trace>
<sources>
<source name="Default" switchValue="Warning">
<listeners>

View File

@@ -44,6 +44,22 @@
</system.transactions>
<system.web>
<healthMonitoring enabled="true" heartbeatInterval="0">
<providers>
<add name="TraceWebEventProvider"
type="System.Web.Management.TraceWebEventProvider, System.Web,Version=4.0.0.0,Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a"/>
</providers>
<rules>
<!--Configure the connection between the application lifetime event object and the provider that must process it.-->
<add name="Custom Application Events"
eventName="Application Lifetime Events"
provider="TraceWebEventProvider"
profile="Default"
minInterval="00:00:00" />
</rules>
</healthMonitoring>
<httpRuntime requestValidationMode="2.0" />
<!--
Set compilation debug="true" to insert debugging