Wrap all suite in a proc to avoid polluting globals

This commit is contained in:
Mamy André-Ratsimbazafy 2020-05-05 17:02:26 +02:00 committed by tersec
parent 926d1c546e
commit e9ff9617df
1 changed files with 5 additions and 2 deletions

View File

@ -73,8 +73,11 @@ proc summarizeLongTests*(name: string) =
template suiteReport*(name, body) =
last = name
status[last] = initOrderedTable[string, Status]()
suite name:
body
block: # namespacing
proc runSuite() =
suite name:
body
runSuite()
template timedTest*(name, body) =
var f: float