From ff50f160e20c2d2670dfa3fa47b973a908208465 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:35:59 +0000 Subject: [PATCH 1/2] Add missing test file --- tst/testProjects/CoverageTestFile.Tests.ps1 | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 tst/testProjects/CoverageTestFile.Tests.ps1 diff --git a/tst/testProjects/CoverageTestFile.Tests.ps1 b/tst/testProjects/CoverageTestFile.Tests.ps1 new file mode 100644 index 000000000..08ba80ab5 --- /dev/null +++ b/tst/testProjects/CoverageTestFile.Tests.ps1 @@ -0,0 +1,5 @@ +Describe 'Testing CodeCoverage' { + It 'Single error' { + . "$PSScriptRoot/../CoverageTestFile.ps1" + } +} From 2c9b62c66e64cfaa70637eaeea8ea19271497bb6 Mon Sep 17 00:00:00 2001 From: Frode Flaten <3436158+fflaten@users.noreply.github.com> Date: Tue, 2 Jul 2024 16:46:17 +0000 Subject: [PATCH 2/2] Fix tests --- tst/testProjects/CoverageTestFile.Tests.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tst/testProjects/CoverageTestFile.Tests.ps1 b/tst/testProjects/CoverageTestFile.Tests.ps1 index 08ba80ab5..3b32eea2e 100644 --- a/tst/testProjects/CoverageTestFile.Tests.ps1 +++ b/tst/testProjects/CoverageTestFile.Tests.ps1 @@ -1,4 +1,6 @@ -Describe 'Testing CodeCoverage' { +Set-StrictMode -Version Latest + +Describe 'Testing CodeCoverage' { It 'Single error' { . "$PSScriptRoot/../CoverageTestFile.ps1" }