From 71fe137f5a9f855342735bdc00b3de8800b3f8e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Kodes=CC=8C?= Date: Thu, 18 Jan 2024 13:05:02 +0100 Subject: [PATCH] [feat]: Turn on test coverage --- .github/workflows/ci.yml | 2 +- .../xcshareddata/xcschemes/Networking.xcscheme | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6631f73b..2082e89c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -33,7 +33,7 @@ jobs: - uses: actions/checkout@v4 - name: ${{ matrix.name }} - run: swift test + run: swift test --parallel --xunit-output "TestResults-${{ matrix.name }}" iOS: name: ${{ matrix.name }} diff --git a/.swiftpm/xcode/xcshareddata/xcschemes/Networking.xcscheme b/.swiftpm/xcode/xcshareddata/xcschemes/Networking.xcscheme index fb598c66..ed488045 100644 --- a/.swiftpm/xcode/xcshareddata/xcschemes/Networking.xcscheme +++ b/.swiftpm/xcode/xcshareddata/xcschemes/Networking.xcscheme @@ -26,7 +26,18 @@ buildConfiguration = "Debug" selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" - shouldUseLaunchSchemeArgsEnv = "YES"> + shouldUseLaunchSchemeArgsEnv = "YES" + codeCoverageEnabled = "YES" + onlyGenerateCoverageForSpecifiedTargets = "YES"> + + + + @@ -37,6 +48,11 @@ BlueprintName = "NetworkingTests" ReferencedContainer = "container:"> + + + +