From d34c3bf41d5a284c59d2ef08d6eeb0f83ed93398 Mon Sep 17 00:00:00 2001 From: Lorenzo Delgado Date: Thu, 3 Nov 2022 17:58:28 +0100 Subject: [PATCH] feat(testlib): mark commented test cases as skipped --- tests/v2/testlib/testutils.nim | 29 +++++++++++++++++++++-------- 1 file changed, 21 insertions(+), 8 deletions(-) diff --git a/tests/v2/testlib/testutils.nim b/tests/v2/testlib/testutils.nim index da8f1d5a4..e345f80d9 100644 --- a/tests/v2/testlib/testutils.nim +++ b/tests/v2/testlib/testutils.nim @@ -1,12 +1,25 @@ -template suitex*(name: string, body: untyped) = discard +import + testutils/unittests + template xsuite*(name: string, body: untyped) = discard +template suitex*(name: string, body: untyped) = discard -template testx*(name: string, body: untyped) = discard -template xtest*(name: string, body: untyped) = discard - -template procSuitex*(name: string, body: untyped) = discard template xprocSuite*(name: string, body: untyped) = discard +template procSuitex*(name: string, body: untyped) = discard -template asyncTestx*(name: string, body: untyped) = discard -template xasyncTest*(name: string, body: untyped) = discard - + +template xtest*(name: string, body: untyped) = + test name: + skip() + +template testx*(name: string, body: untyped) = + test name: + skip() + +template xasyncTest*(name: string, body: untyped) = + test name: + skip() + +template asyncTestx*(name: string, body: untyped) = + test name: + skip()