We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23444d commit 397c8a3Copy full SHA for 397c8a3
1 file changed
scripts/main.ps1
@@ -230,8 +230,24 @@ process {
230
}
231
Write-Host "Tests found at [$testsPath]"
232
233
+
234
+ <#
235
+ .SYNOPSIS
236
+ Retrieves test items from a specified folder.
237
238
+ .DESCRIPTION
239
+ Searches for test configuration, container, or test script files within the specified folder.
240
241
+ .OUTPUTS
242
+ System.IO.FileInfo[]
243
+ Returns an array of FileInfo objects representing the test items found.
244
+ #>
245
function Get-TestItemsFromFolder {
- param ([string]$FolderPath)
246
+ [CmdletBinding()]
247
+ param (
248
+ # The path to the folder containing test items.
249
+ [string]$FolderPath
250
+ )
251
252
$configFiles = Get-ChildItem -Path $FolderPath -File -Filter '*.Configuration.ps1'
253
if ($configFiles.Count -eq 1) {
0 commit comments