From 4137497963143af77a602a3ac9ea9e9dd4c68c4b Mon Sep 17 00:00:00 2001 From: Productive2 Date: Fri, 29 Jan 2021 20:15:34 +0100 Subject: [PATCH] Now -h and -v options dont run any tests ;) --- tests/jats.nim | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/jats.nim b/tests/jats.nim index 6ecd274..94cdfbe 100644 --- a/tests/jats.nim +++ b/tests/jats.nim @@ -1,8 +1,6 @@ # Just Another Test Suite for running JAPL tests import nim/nimtests -when isMainModule: - runNimTests() import ../src/vm import testutils @@ -136,7 +134,10 @@ when isMainModule: elif paramStr(1) == "-v": echo "JATS v" & $jatsVersion quit(0) + log(LogLevel.Debug, &"Welcome to JATS") + + runNimTests() var jatr = "jatr" var testDir = "japl" if not fileExists(jatr) and fileExists("tests" / jatr):