move to unittest2
to fix a clash with testutils
This commit is contained in:
parent
41a0cc6180
commit
5eb7fd0c90
2 changed files with 4 additions and 3 deletions
|
|
@ -10,7 +10,8 @@ skipDirs = @["tests"]
|
||||||
requires "nim >= 1.2.0",
|
requires "nim >= 1.2.0",
|
||||||
"stew",
|
"stew",
|
||||||
"testutils",
|
"testutils",
|
||||||
"chronos"
|
"chronos",
|
||||||
|
"unittest2"
|
||||||
|
|
||||||
### Helper functions
|
### Helper functions
|
||||||
proc test(env, path: string) =
|
proc test(env, path: string) =
|
||||||
|
|
@ -20,7 +21,7 @@ proc test(env, path: string) =
|
||||||
lang = getEnv"TEST_LANG"
|
lang = getEnv"TEST_LANG"
|
||||||
|
|
||||||
exec "nim " & lang & " " & env &
|
exec "nim " & lang & " " & env &
|
||||||
" -r --hints:off --warnings:off " & path
|
" -r --hints:off --skipParentCfg " & path
|
||||||
|
|
||||||
task test, "Run all tests":
|
task test, "Run all tests":
|
||||||
test "-d:debug --threads:on", "tests/all_tests"
|
test "-d:debug --threads:on", "tests/all_tests"
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{.used.}
|
{.used.}
|
||||||
|
|
||||||
import
|
import
|
||||||
os, unittest, strutils, random,
|
os, unittest2, strutils, random,
|
||||||
stew/ranges/ptr_arith, testutils,
|
stew/ranges/ptr_arith, testutils,
|
||||||
../faststreams, ../faststreams/textio
|
../faststreams, ../faststreams/textio
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue