From 6eff9245faf1c1789b4ad36c436e9aa3b457be17 Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Fri, 23 Feb 2018 09:17:21 +0100 Subject: [PATCH] Configured xunit DisableTestParallelization to make tests more stable --- .../Properties/AssemblyInfo-test.cs | 14 ++++++++++++++ NLog.Web.Tests/Properties/AssemblyInfo-test.cs | 2 ++ appveyor.yml | 1 + 3 files changed, 17 insertions(+) create mode 100644 NLog.Web.AspNetCore.Tests/Properties/AssemblyInfo-test.cs diff --git a/NLog.Web.AspNetCore.Tests/Properties/AssemblyInfo-test.cs b/NLog.Web.AspNetCore.Tests/Properties/AssemblyInfo-test.cs new file mode 100644 index 00000000..97f073b7 --- /dev/null +++ b/NLog.Web.AspNetCore.Tests/Properties/AssemblyInfo-test.cs @@ -0,0 +1,14 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +[assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)] \ No newline at end of file diff --git a/NLog.Web.Tests/Properties/AssemblyInfo-test.cs b/NLog.Web.Tests/Properties/AssemblyInfo-test.cs index 53c2abfb..3ce1fa53 100644 --- a/NLog.Web.Tests/Properties/AssemblyInfo-test.cs +++ b/NLog.Web.Tests/Properties/AssemblyInfo-test.cs @@ -34,3 +34,5 @@ // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("1.2.3.0")] [assembly: AssemblyFileVersion("1.0.0.0")] + +[assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)] \ No newline at end of file diff --git a/appveyor.yml b/appveyor.yml index 0048d518..e4851530 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -1,3 +1,4 @@ +version: 4.5.0.{build} clone_folder: c:\projects\nlogweb configuration: Release image: Visual Studio 2017