nim-task-runner/test/test_helpers.nim
Michael Bradley, Jr a87f3f85be feat: introduce some changes/additions from test/use-cases branch
But without introducing the use cases tests themselves nor their dependencies
in vendor.
2021-03-12 16:53:08 -06:00

13 lines
250 B
Nim

import chronos, unittest
template asyncTest*(name, body: untyped) =
test name:
proc scenario {.async.} = body
waitFor scenario()
template procSuite*(name, body: untyped) =
proc suitePayload =
suite name:
body
suitePayload()