Tests for chronos v4

This commit is contained in:
Mark Spanbroek 2023-12-20 15:11:32 +01:00 committed by markspanbroek
parent 1a0cd2c496
commit c9423b198f
5 changed files with 18 additions and 1 deletions

View File

@ -6,7 +6,7 @@ license = "MIT"
skipDirs = @["testmodules"]
task test, "Runs the test suite":
for module in ["stdlib", "chronosv3", "unittest2"]:
for module in ["stdlib", "chronosv3", "chronosv4", "unittest2"]:
withDir "testmodules/" & module:
delEnv "NIMBLE_DIR" # use nimbledeps dir
exec "nimble install -d -y"

View File

@ -0,0 +1,3 @@
--path:"../.."
--hint:"XCannotRaiseY:off"
--define:"chronosPreviewV4" # TODO: remove once chronos v4 is released

View File

View File

@ -0,0 +1,5 @@
import pkg/asynctest
import pkg/chronos
include ../stdlib/testbody
include ../stdlib/testfail

View File

@ -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"