megatest integrated in default test all

This commit is contained in:
Arne Döring 2018-12-05 01:15:12 +01:00 • committed by Araq
commit c0c35839cc
2 changed files with 54 additions and 61 deletions

View file

@ -553,6 +553,8 @@ proc main() =
var r = initResults()
case action
of "all":
doAssert runJoinedTest()
let testsDir = "tests" & DirSep
var myself = quoteShell(findExe("testament" / "tester"))
if targetsStr.len > 0:
@ -573,7 +575,7 @@ proc main() =
of "c", "cat", "category":
var cat = Category(p.key)
p.next
processCategory(r, cat, p.cmdLineRest.string)
processCategory(r, cat, p.cmdLineRest.string, runJoinableTests = false)
of "r", "run":
let (dir, file) = splitPath(p.key.string)
let (_, subdir) = splitPath(dir)
@ -582,7 +584,7 @@ proc main() =
of "html":
generateHtml(resultsFile, optFailing)
of "stats":
runJoinedTest()
discard runJoinedTest()
else:
quit Usage