Skip to content

Commit

Permalink
Merge branch 'users/eriqua/test-folders' of https://github.com/Azure/…
Browse files Browse the repository at this point in the history
…ResourceModules into users/eriqua/test-folders
  • Loading branch information
eriqua committed Nov 3, 2023
2 parents 2462736 + 74bd39c commit 9513855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions utilities/pipelines/sharedScripts/Get-ModuleTestFileList.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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')
Expand Down
2 changes: 1 addition & 1 deletion utilities/pipelines/staticValidation/module.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 9513855

Please sign in to comment.