From e585115c71fbf760e3d1fedba56258814a194147 Mon Sep 17 00:00:00 2001 From: Erika Gressi <56914614+eriqua@users.noreply.github.com> Date: Fri, 3 Nov 2023 22:22:58 +0100 Subject: [PATCH 1/2] Update Get-ModuleTestFileList.ps1 --- utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1 b/utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1 index e0cbac542b..95529c0ff4 100644 --- a/utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1 +++ b/utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1 @@ -18,7 +18,7 @@ Optional. The pattern of test files to search for. For example '*.json' .EXAMPLE Get-ModuleTestFileList -ModulePath 'C:\ResourceModules\modules\compute\virtual-machine' -Returns the relative file paths of all test files of the virtual-machine module in the default test folder ('.test'). +Returns the relative file paths of all test files of the virtual-machine module in the default test folder ('tests'). .EXAMPLE Get-ModuleTestFileList -ModulePath 'C:\ResourceModules\modules\compute\virtual-machine' -SearchFolder 'parameters' @@ -33,7 +33,7 @@ function Get-ModuleTestFileList { [string] $ModulePath, [Parameter(Mandatory = $false)] - [string] $SearchFolder = '.test', + [string] $SearchFolder = 'tests', [Parameter(Mandatory = $false)] [string[]] $TestFilePattern = @('*.json', 'main.test.bicep') From 74bd39c01a9fb07663e77d7cc301f05d33afa6ba Mon Sep 17 00:00:00 2001 From: Erika Gressi <56914614+eriqua@users.noreply.github.com> Date: Fri, 3 Nov 2023 22:44:34 +0100 Subject: [PATCH 2/2] Update module.tests.ps1 --- utilities/pipelines/staticValidation/module.tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities/pipelines/staticValidation/module.tests.ps1 b/utilities/pipelines/staticValidation/module.tests.ps1 index 59805a7a6d..3e8ff1fe2e 100644 --- a/utilities/pipelines/staticValidation/module.tests.ps1 +++ b/utilities/pipelines/staticValidation/module.tests.ps1 @@ -81,7 +81,7 @@ Describe 'File/folder tests' -Tag 'Modules' { [string] $moduleFolderPath ) - $pathExisting = Test-Path (Join-Path -Path $moduleFolderPath '.test') + $pathExisting = Test-Path (Join-Path -Path $moduleFolderPath 'tests') $pathExisting | Should -Be $true }