Tests for chronos v4
This commit is contained in:
parent
1a0cd2c496
commit
c9423b198f
|
@ -6,7 +6,7 @@ license = "MIT"
|
||||||
skipDirs = @["testmodules"]
|
skipDirs = @["testmodules"]
|
||||||
|
|
||||||
task test, "Runs the test suite":
|
task test, "Runs the test suite":
|
||||||
for module in ["stdlib", "chronosv3", "unittest2"]:
|
for module in ["stdlib", "chronosv3", "chronosv4", "unittest2"]:
|
||||||
withDir "testmodules/" & module:
|
withDir "testmodules/" & module:
|
||||||
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
||||||
exec "nimble install -d -y"
|
exec "nimble install -d -y"
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
--path:"../.."
|
||||||
|
--hint:"XCannotRaiseY:off"
|
||||||
|
--define:"chronosPreviewV4" # TODO: remove once chronos v4 is released
|
|
@ -0,0 +1,5 @@
|
||||||
|
import pkg/asynctest
|
||||||
|
import pkg/chronos
|
||||||
|
|
||||||
|
include ../stdlib/testbody
|
||||||
|
include ../stdlib/testfail
|
|
@ -0,0 +1,9 @@
|
||||||
|
version = "0.1.0"
|
||||||
|
author = "Asynctest Authors"
|
||||||
|
description = "Asynctest tests for std/unittest and pkg/chronos"
|
||||||
|
license = "MIT"
|
||||||
|
|
||||||
|
requires "chronos#head" # TODO: use "chronos >= 4.0.0 & < 5.0.0" once it's released
|
||||||
|
|
||||||
|
task test, "Runs the test suite":
|
||||||
|
exec "nim c -f -r --skipParentCfg test.nim"
|
Loading…
Reference in New Issue