From 7750a08f65bf1e9a768d66df4e3c15c07efdb645 Mon Sep 17 00:00:00 2001 From: Alexey-Ayupov <116575425+Alexey-Ayupov@users.noreply.github.com> Date: Thu, 12 Jan 2023 22:26:45 +0300 Subject: [PATCH] Disable Pester test colors (#6908) --- images/linux/scripts/helpers/Tests.Helpers.psm1 | 4 ++-- images/macos/helpers/Tests.Helpers.psm1 | 2 +- images/win/scripts/ImageHelpers/TestsHelpers.ps1 | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/images/linux/scripts/helpers/Tests.Helpers.psm1 b/images/linux/scripts/helpers/Tests.Helpers.psm1 index 5689d9e54..161165c53 100644 --- a/images/linux/scripts/helpers/Tests.Helpers.psm1 +++ b/images/linux/scripts/helpers/Tests.Helpers.psm1 @@ -20,10 +20,10 @@ function Invoke-PesterTests { if (!(Get-Module "Pester")) { Import-Module Pester } - + $configuration = [PesterConfiguration] @{ Run = @{ Path = $testPath; PassThru = $true } - Output = @{ Verbosity = "Detailed" } + Output = @{ Verbosity = "Detailed"; RenderMode = "Plaintext" } } if ($TestName) { $configuration.Filter.FullName = $TestName diff --git a/images/macos/helpers/Tests.Helpers.psm1 b/images/macos/helpers/Tests.Helpers.psm1 index 4eaeec3ce..528a0857e 100644 --- a/images/macos/helpers/Tests.Helpers.psm1 +++ b/images/macos/helpers/Tests.Helpers.psm1 @@ -132,7 +132,7 @@ function Invoke-PesterTests { $configuration = [PesterConfiguration] @{ Run = @{ Path = $testPath; PassThru = $true } - Output = @{ Verbosity = "Detailed" } + Output = @{ Verbosity = "Detailed"; RenderMode = "Plaintext" } } if ($TestName) { $configuration.Filter.FullName = $TestName diff --git a/images/win/scripts/ImageHelpers/TestsHelpers.ps1 b/images/win/scripts/ImageHelpers/TestsHelpers.ps1 index fcc9a6193..9e6efc43e 100644 --- a/images/win/scripts/ImageHelpers/TestsHelpers.ps1 +++ b/images/win/scripts/ImageHelpers/TestsHelpers.ps1 @@ -48,7 +48,7 @@ function Invoke-PesterTests { $configuration = [PesterConfiguration] @{ Run = @{ Path = $testPath; PassThru = $true } - Output = @{ Verbosity = "Detailed" } + Output = @{ Verbosity = "Detailed"; RenderMode = "Plaintext"} } if ($TestName) { $configuration.Filter.FullName = $TestName