From df83b9a1deb3e47d4e5e7de819170b92658b7892 Mon Sep 17 00:00:00 2001 From: Craig Fowler Date: Thu, 25 Feb 2021 20:24:13 +0000 Subject: [PATCH] WIP #665 - Beginnings of SonarCloud integration Adds an XUnit test logger to each test csproj file (will be used by test script). Also add a skeleton SonarCloud analysis config file with a couple of settings for starters: Don't analyse exception classes or samples for coverage. --- .SonarQube.Analysis.xml | 9 +++++++++ .../Elsa.ComponentTests/Elsa.ComponentTests.csproj | 1 + .../Elsa.Core.IntegrationTests.csproj | 1 + test/unit/Elsa.UnitTests/Elsa.UnitTests.csproj | 1 + 4 files changed, 12 insertions(+) create mode 100644 .SonarQube.Analysis.xml diff --git a/.SonarQube.Analysis.xml b/.SonarQube.Analysis.xml new file mode 100644 index 000000000..922f693d6 --- /dev/null +++ b/.SonarQube.Analysis.xml @@ -0,0 +1,9 @@ + + + + **/*Exception.cs, + src/samples/**/* + + \ No newline at end of file diff --git a/test/component/Elsa.ComponentTests/Elsa.ComponentTests.csproj b/test/component/Elsa.ComponentTests/Elsa.ComponentTests.csproj index 88a6f4ef3..10119e4be 100644 --- a/test/component/Elsa.ComponentTests/Elsa.ComponentTests.csproj +++ b/test/component/Elsa.ComponentTests/Elsa.ComponentTests.csproj @@ -11,6 +11,7 @@ + runtime; build; native; contentfiles; analyzers; buildtransitive all diff --git a/test/integration/Elsa.Core.IntegrationTests/Elsa.Core.IntegrationTests.csproj b/test/integration/Elsa.Core.IntegrationTests/Elsa.Core.IntegrationTests.csproj index c9a1d3c0a..b1e1a6aa2 100644 --- a/test/integration/Elsa.Core.IntegrationTests/Elsa.Core.IntegrationTests.csproj +++ b/test/integration/Elsa.Core.IntegrationTests/Elsa.Core.IntegrationTests.csproj @@ -14,6 +14,7 @@ + all runtime; build; native; contentfiles; analyzers; buildtransitive diff --git a/test/unit/Elsa.UnitTests/Elsa.UnitTests.csproj b/test/unit/Elsa.UnitTests/Elsa.UnitTests.csproj index 68d5d38b9..ff0b75766 100644 --- a/test/unit/Elsa.UnitTests/Elsa.UnitTests.csproj +++ b/test/unit/Elsa.UnitTests/Elsa.UnitTests.csproj @@ -13,6 +13,7 @@ + runtime; build; native; contentfiles; analyzers; buildtransitive all