From d95f760d49621753209829b206793e6d5c7b86bd Mon Sep 17 00:00:00 2001 From: Nick Maltbie Date: Thu, 21 Apr 2022 19:08:44 -0400 Subject: [PATCH] Changed eableCyclomaticComplexity to generateAdditionalMetrics (#183) * Changed eableCyclomaticComplexity to generateAdditionalMetrics for coverageOptions * updated codecoverage to version 1.1.1 --- .github/workflows/main.yml | 2 +- action.yml | 2 +- unity-project-with-correct-tests/Packages/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2cc655b..ae6f012 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -105,7 +105,7 @@ jobs: projectPath: ${{ matrix.projectPath }} unityVersion: ${{ matrix.unityVersion }} testMode: all - coverageOptions: 'enableCyclomaticComplexity;generateHtmlReport;generateBadgeReport;assemblyFilters:+MyScripts' + coverageOptions: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport;assemblyFilters:+MyScripts' # Test implicit artifactsPath, by not setting it # Upload artifacts diff --git a/action.yml b/action.yml index 4758497..2b5b89f 100644 --- a/action.yml +++ b/action.yml @@ -22,7 +22,7 @@ inputs: description: 'The type of tests to be run by the test runner.' coverageOptions: required: false - default: 'enableCyclomaticComplexity;generateHtmlReport;generateBadgeReport' + default: 'generateAdditionalMetrics;generateHtmlReport;generateBadgeReport' description: 'Optional coverage parameters for the -coverageOptions argument.' artifactsPath: required: false diff --git a/unity-project-with-correct-tests/Packages/manifest.json b/unity-project-with-correct-tests/Packages/manifest.json index b446d87..da0cd61 100644 --- a/unity-project-with-correct-tests/Packages/manifest.json +++ b/unity-project-with-correct-tests/Packages/manifest.json @@ -6,7 +6,7 @@ "com.unity.ide.vscode": "1.1.2", "com.unity.package-manager-ui": "2.2.0", "com.unity.test-framework": "1.0.13", - "com.unity.testtools.codecoverage": "1.0.1", + "com.unity.testtools.codecoverage": "1.1.1", "com.unity.textmeshpro": "2.0.1", "com.unity.timeline": "1.1.0", "com.unity.ugui": "1.0.0",