Skip to content

Commit 2c1a0f7

Browse files
committed
tests: Add log message during export test for ci
1 parent 234783c commit 2c1a0f7

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

tests/Export-Mdb.tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Context "Export-Mdb" {
1515
$folder = Get-MdbCamera | Get-MdbSequence -Type RecordingSequence | ForEach-Object {
1616
$path = 'TestDrive:\{0}_{1}_Database' -f $_.Source, $_.Start.ToString('yyyy-MM-dd_HH-mm-ss')
1717
$exportParams = @{
18-
Start = $_.Start
19-
End = $_.End
20-
Path = $path
18+
Start = $_.Start
19+
End = $_.End
20+
Path = $path
21+
ErrorAction = 'Stop'
2122
}
23+
Write-Host "Exporting to $path" -ForegroundColor Magenta
2224
$_ | Export-Mdb @exportParams
2325
}
2426
$folder | Should -Not -BeNullOrEmpty

tests/Export-MdbMkv.tests.ps1

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ Context "Export-MdbMkv" {
1515
$mkvFile = Get-MdbCamera | Get-MdbSequence -Type RecordingSequence | ForEach-Object {
1616
$path = 'TestDrive:\{0}_{1}.mkv' -f $_.Source, $_.Start.ToString('yyyy-MM-dd_HH-mm-ss')
1717
$exportParams = @{
18-
Start = $_.Start
19-
End = $_.End
20-
Path = $path
18+
Start = $_.Start
19+
End = $_.End
20+
Path = $path
21+
ErrorAction = 'Stop'
2122
}
23+
Write-Host "Exporting to $path" -ForegroundColor Magenta
2224
$_ | Export-MdbMkv @exportParams
2325
}
2426
$mkvFile | Should -Not -BeNullOrEmpty

0 commit comments

Comments
 (0)