diff --git a/README.md b/README.md index ef99ecb..4b22670 100644 --- a/README.md +++ b/README.md @@ -349,15 +349,16 @@ Access to lower level polling functions are provided with these functions: ### Run tests -Run tests using .\runall.ps1 which accepts two parameters: +Run tests using .\tests\pre-commit.ps1 which accepts the following parameters: -- tag Run tests of this type -- num Run this number of tests +- `kind`: Run tests of this kind +- `tag`: Run tests tagged with this marker (currently `higher` or `lower`) +- `num`: Run this number of tests -Current test types are 'higher' and 'lower' +Run tests from repository root in a subshell like so: Example: -`.\runall.ps1 -tag 'higher' -num 3` +`powershell .\tests\pre-commit.ps1 -k "potato" -t "higher"3` Results will be logged and summary file written. diff --git a/examples/nextbus/GoTo-NextBus.ps1 b/examples/nextbus/GoTo-NextBus.ps1 index 681a43a..4274930 100644 --- a/examples/nextbus/GoTo-NextBus.ps1 +++ b/examples/nextbus/GoTo-NextBus.ps1 @@ -20,7 +20,7 @@ try { $bus = $_ # 2) if (-not $bus.mute) { - Write-Host "bus", $bus.index, "is unmuted... muting it" + "bus " + $bus.index + " is unmuted... muting it" | Write-Host $unmutedIndex = $buses.IndexOf($bus) $bus.mute = $true