Skip to content

Commit

Permalink
RECE1: group pester tests in context
Browse files Browse the repository at this point in the history
  • Loading branch information
reingart committed Nov 20, 2022
1 parent d1b9d69 commit aef1ea8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions tests/powershell/test_rece1.ps1
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# call webservice to get last invoice number (Invoice type: 1 - Point of Sale: 2):
RECE1.exe /ult 1 2 /json --debug --trace
# convert the output file to json to read the results:
$json = Get-Content -Path salida.txt | ConvertFrom-Json

describe TestUlt {
Context {
Context "get last invoice - json interchange files" {
BeforeAll {
# call webservice to get last invoice number (Invoice type: 1 - Point of Sale: 2):
RECE1.exe /ult 1 2 /json --debug --trace
# convert the output file to json to read the results:
$json = Get-Content -Path salida.txt | ConvertFrom-Json
}
it 'returns last invoice number' {
[int]$json[0].cbt_desde | Should -BeGreaterOrEqual 1
}
Expand Down

0 comments on commit aef1ea8

Please sign in to comment.