Skip to content

Commit b126735

Browse files
Joel BennettJoel Bennett
authored andcommitted
Disambiguate (and fix) tests
1 parent 04d361f commit b126735

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

Tests/Invoke.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -Module PowerShellLogging
2-
Describe "Working when called inside PowerShell.Invoke" {
2+
Describe "Working when called inside PowerShell.Invoke (as long as we Remove-Module)" {
33

44
$Path = "TestDrive:\log.txt"
55
$Path = (Join-Path (Convert-Path (Split-Path $Path)) (Split-Path $Path -Leaf))

Tests/ParallelRemote.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#requires -Module PowerShellLogging, ThreadJob
22
param($Count = 4)
33

4-
Describe "Working when called in a remote runspace" -Tag "Remoting" {
4+
Describe "Working when called in parallel in remote runspaces" -Tag "Remoting" {
55

66
$Path = "TestDrive:\log{0}.txt"
77
$Path = (Join-Path (Convert-Path (Split-Path $Path)) (Split-Path $Path -Leaf))

Tests/ParallelRunspace.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#requires -Module PowerShellLogging, ThreadJob
22
param($Count = 2)
33

4-
Describe "Working when called in a remote runspace" -Tag "ThreadJob", "WIP" {
4+
Describe "Working when called simultaneously in parallel runspaces" -Tag "ThreadJob", "WIP" {
55

66
$Path = "TestDrive:\log{0}.txt"
77
$Path = (Join-Path (Convert-Path (Split-Path $Path)) (Split-Path $Path -Leaf))

Tests/Runspace.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -Module PowerShellLogging
2-
Describe "Working when called in a parallel runspace" {
2+
Describe "Working when called synchronously in a parallel runspace (as long as we Remove-Module)" {
33

44
$Path = "TestDrive:\log.txt"
55
$Path = (Join-Path (Convert-Path (Split-Path $Path)) (Split-Path $Path -Leaf))

Tests/Simple.Tests.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#requires -Module PowerShellLogging
2-
Describe "Working in scripts run locally in the host" {
2+
Describe "Working in scripts run locally in the host (as long as we Remove-Module)" {
33

44
$Path = "TestDrive:\log.txt"
55
$Path = (Join-Path (Convert-Path (Split-Path $Path)) (Split-Path $Path -Leaf))
@@ -14,6 +14,7 @@ Describe "Working in scripts run locally in the host" {
1414
Write-Verbose 'This is a verbose test' -verbose
1515
Write-Verbose 'This is a another verbose test'
1616
Disable-LogFile $Logging
17+
Remove-Module PowerShellLogging
1718
}
1819

1920
It "Should not crash when used" {

0 commit comments

Comments
 (0)