From aef1ea820e58753d80ae4d2c010824462f361100 Mon Sep 17 00:00:00 2001 From: Mariano Reingart Date: Sun, 20 Nov 2022 16:16:51 -0300 Subject: [PATCH] RECE1: group pester tests in context --- tests/powershell/test_rece1.ps1 | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/tests/powershell/test_rece1.ps1 b/tests/powershell/test_rece1.ps1 index 5c52558ad..591ea9cf9 100644 --- a/tests/powershell/test_rece1.ps1 +++ b/tests/powershell/test_rece1.ps1 @@ -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 }