diff --git a/src/CFamily.UnitTests/CFamily.UnitTests.csproj b/src/CFamily.UnitTests/CFamily.UnitTests.csproj index 6e62d6b4e2..4a76d260b8 100644 --- a/src/CFamily.UnitTests/CFamily.UnitTests.csproj +++ b/src/CFamily.UnitTests/CFamily.UnitTests.csproj @@ -22,6 +22,12 @@ PreserveNewest + + + + TestParallelization.cs + + diff --git a/src/Core.UnitTests/Core.UnitTests.csproj b/src/Core.UnitTests/Core.UnitTests.csproj index 49281ef054..8040e1a3cd 100644 --- a/src/Core.UnitTests/Core.UnitTests.csproj +++ b/src/Core.UnitTests/Core.UnitTests.csproj @@ -19,4 +19,10 @@ + + + TestParallelization.cs + + + diff --git a/src/Education.UnitTests/Education.UnitTests.csproj b/src/Education.UnitTests/Education.UnitTests.csproj index 392bce2397..908d0530aa 100644 --- a/src/Education.UnitTests/Education.UnitTests.csproj +++ b/src/Education.UnitTests/Education.UnitTests.csproj @@ -37,4 +37,10 @@ + + + TestParallelization.cs + + + diff --git a/src/Integration.TeamExplorer.UnitTests/Integration.TeamExplorer.UnitTests.csproj b/src/Integration.TeamExplorer.UnitTests/Integration.TeamExplorer.UnitTests.csproj index 0fc8bb3763..ba8893193a 100644 --- a/src/Integration.TeamExplorer.UnitTests/Integration.TeamExplorer.UnitTests.csproj +++ b/src/Integration.TeamExplorer.UnitTests/Integration.TeamExplorer.UnitTests.csproj @@ -38,5 +38,11 @@ + + + + TestParallelization.cs + + diff --git a/src/Integration.UnitTests/Integration.UnitTests.csproj b/src/Integration.UnitTests/Integration.UnitTests.csproj index 7db47a34a5..1ee3268437 100644 --- a/src/Integration.UnitTests/Integration.UnitTests.csproj +++ b/src/Integration.UnitTests/Integration.UnitTests.csproj @@ -35,4 +35,10 @@ + + + + TestParallelization.cs + + diff --git a/src/Integration.Vsix.UnitTests/Integration.Vsix.UnitTests.csproj b/src/Integration.Vsix.UnitTests/Integration.Vsix.UnitTests.csproj index 2da37e19f3..3a46dadced 100644 --- a/src/Integration.Vsix.UnitTests/Integration.Vsix.UnitTests.csproj +++ b/src/Integration.Vsix.UnitTests/Integration.Vsix.UnitTests.csproj @@ -39,4 +39,10 @@ + + + TestParallelization.cs + + + diff --git a/src/Roslyn.Suppressions/Roslyn.Suppressions.UnitTests/Roslyn.Suppressions.UnitTests.csproj b/src/Roslyn.Suppressions/Roslyn.Suppressions.UnitTests/Roslyn.Suppressions.UnitTests.csproj index aa1fd97ffa..105d7349c9 100644 --- a/src/Roslyn.Suppressions/Roslyn.Suppressions.UnitTests/Roslyn.Suppressions.UnitTests.csproj +++ b/src/Roslyn.Suppressions/Roslyn.Suppressions.UnitTests/Roslyn.Suppressions.UnitTests.csproj @@ -22,5 +22,11 @@ + + + + TestParallelization.cs + + diff --git a/src/SLCore.IntegrationTests/SLCore.IntegrationTests.csproj b/src/SLCore.IntegrationTests/SLCore.IntegrationTests.csproj index 1de5a04f68..ab5587b0b6 100644 --- a/src/SLCore.IntegrationTests/SLCore.IntegrationTests.csproj +++ b/src/SLCore.IntegrationTests/SLCore.IntegrationTests.csproj @@ -55,4 +55,10 @@ + + + TestParallelization.cs + + + diff --git a/src/SLCore.Listeners.UnitTests/SLCore.Listeners.UnitTests.csproj b/src/SLCore.Listeners.UnitTests/SLCore.Listeners.UnitTests.csproj index ad54e4753d..58725c0dea 100644 --- a/src/SLCore.Listeners.UnitTests/SLCore.Listeners.UnitTests.csproj +++ b/src/SLCore.Listeners.UnitTests/SLCore.Listeners.UnitTests.csproj @@ -19,4 +19,10 @@ + + + TestParallelization.cs + + + diff --git a/src/SLCore.UnitTests/SLCore.UnitTests.csproj b/src/SLCore.UnitTests/SLCore.UnitTests.csproj index c0e6e3d7ef..549fa37b75 100644 --- a/src/SLCore.UnitTests/SLCore.UnitTests.csproj +++ b/src/SLCore.UnitTests/SLCore.UnitTests.csproj @@ -13,4 +13,10 @@ + + + TestParallelization.cs + + + diff --git a/src/SonarQube.Client.Tests/SonarQube.Client.Tests.csproj b/src/SonarQube.Client.Tests/SonarQube.Client.Tests.csproj index ff3522c5fd..b633e82214 100644 --- a/src/SonarQube.Client.Tests/SonarQube.Client.Tests.csproj +++ b/src/SonarQube.Client.Tests/SonarQube.Client.Tests.csproj @@ -30,4 +30,10 @@ + + + TestParallelization.cs + + + \ No newline at end of file diff --git a/src/SLCore.IntegrationTests/TestParallelization.cs b/src/TestInfrastructure/TestParallelization.cs similarity index 82% rename from src/SLCore.IntegrationTests/TestParallelization.cs rename to src/TestInfrastructure/TestParallelization.cs index 40f27c12f7..25c9d8cd6e 100644 --- a/src/SLCore.IntegrationTests/TestParallelization.cs +++ b/src/TestInfrastructure/TestParallelization.cs @@ -18,6 +18,4 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ -#if DEBUG - [assembly:Parallelize(Workers = 4, Scope = ExecutionScope.ClassLevel)] // method level is not safe, as SLCore instance are shared inside the test classes -#endif +[assembly:Parallelize(Workers = 4, Scope = ExecutionScope.ClassLevel)] // method level is not safe as multiple test classes rely on global setup (for example, SLCore integration tests)