File tree Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Expand file tree Collapse file tree 3 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -87,8 +87,10 @@ Describe "Test Path" {
87
87
88
88
Context " When given a glob" {
89
89
It " Invokes on all the matching files" {
90
- $numFilesResult = (Invoke-ScriptAnalyzer - Path $directory \Rule* .ps1 | Select-Object - Property ScriptName - Unique).Count
91
- $numFilesExpected = (Get-ChildItem - Path $directory \Rule* .ps1).Count
90
+ $numFilesResult = (Invoke-ScriptAnalyzer - Path $directory \TestTestPath* .ps1 | Select-Object - Property ScriptName - Unique).Count
91
+ Write-HOst " Number of files processed"
92
+ Write-Host $numFilesResult
93
+ $numFilesExpected = (Get-ChildItem - Path $directory \TestTestPath* .ps1).Count
92
94
$numFilesResult | Should be $numFilesExpected
93
95
}
94
96
}
@@ -98,8 +100,8 @@ Describe "Test Path" {
98
100
$freeDriveNameLen = 2
99
101
$freeDrive , $freeDriveName = GetFreeDrive $freeDriveNameLen
100
102
New-PSDrive - Name $freeDriveName - PSProvider FileSystem - Root $directory
101
- $numFilesExpected = (Get-ChildItem - Path $freeDrive \R * .ps1).Count
102
- $numFilesResult = (Invoke-ScriptAnalyzer - Path $freeDrive \Rule * .ps1 | Select-Object - Property ScriptName - Unique).Count
103
+ $numFilesExpected = (Get-ChildItem - Path $freeDrive \TestTestPath * .ps1).Count
104
+ $numFilesResult = (Invoke-ScriptAnalyzer - Path $freeDrive \TestTestPath * .ps1 | Select-Object - Property ScriptName - Unique).Count
103
105
Remove-PSDrive $freeDriveName
104
106
$numFilesResult | Should Be $numFilesExpected
105
107
}
Original file line number Diff line number Diff line change
1
+ gci
Original file line number Diff line number Diff line change
1
+ ConvertTo-SecureString - AsPlainText " 123456" - Force
You can’t perform that action at this time.
0 commit comments