Add test discovery for easy test writing
This commit is contained in:
parent
bc75134530
commit
502ca5329b
5 changed files with 49 additions and 13 deletions
|
|
@ -1 +1,2 @@
|
|||
-d:test
|
||||
--path:"../src/"
|
||||
|
|
|
|||
3
tests/runner.nim
Normal file
3
tests/runner.nim
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
import tani
|
||||
|
||||
discoverAndRunTests()
|
||||
6
tests/stuff/testham.nim
Normal file
6
tests/stuff/testham.nim
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
import tani
|
||||
|
||||
test "this is crazy":
|
||||
echo "balls"
|
||||
|
||||
runTests()
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
import tani, test2
|
||||
import tani
|
||||
import terminal
|
||||
import os
|
||||
|
||||
|
|
@ -20,4 +20,4 @@ proc y(): int =
|
|||
|
||||
return 10
|
||||
|
||||
runTestsMain()
|
||||
runTests()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue