mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
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:
@@ -1,5 +1,10 @@
|
|||||||
<system.diagnostics>
|
<system.diagnostics>
|
||||||
<trace autoflush="true"/>
|
<trace autoflush="true">
|
||||||
|
<listeners>
|
||||||
|
<!-- Capture Trace messages from ASP.NET TraceWebEventProvider -->
|
||||||
|
<add name ="CaptureTraceMessages"/>
|
||||||
|
</listeners>
|
||||||
|
</trace>
|
||||||
<sources>
|
<sources>
|
||||||
<source name="Default" switchValue="Warning">
|
<source name="Default" switchValue="Warning">
|
||||||
<listeners>
|
<listeners>
|
||||||
|
@@ -44,6 +44,22 @@
|
|||||||
</system.transactions>
|
</system.transactions>
|
||||||
|
|
||||||
<system.web>
|
<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" />
|
<httpRuntime requestValidationMode="2.0" />
|
||||||
<!--
|
<!--
|
||||||
Set compilation debug="true" to insert debugging
|
Set compilation debug="true" to insert debugging
|
||||||
|
Reference in New Issue
Block a user