splits the test dependencies from the dev dependencies (example nim-ethers)

This commit is contained in:
Ben 2024-08-14 10:23:29 +02:00
parent 747320808a
commit 421fabe98b
No known key found for this signature in database
GPG Key ID: 0F16E812E736C24B
3 changed files with 35 additions and 4 deletions

View File

@ -5,7 +5,6 @@ author = "Status Research & Development GmbH"
description = "DHT based on Eth discv5 implementation"
license = "MIT"
skipDirs = @["tests"]
installFiles = @["build.nims"]
# Dependencies
requires "nim >= 1.6.18"
@ -20,9 +19,30 @@ requires "libp2p#cde5ed7e8ccc3b452878db4c82c6f2f2e70d28f4"
requires "metrics"
requires "stew#head"
requires "stint"
requires "asynctest#12c356672d26053ddc4c1443491e9eee65ec03a2"
requires "https://github.com/codex-storage/nim-datastore#042173085fe6ec035c8159e6c7cbcc149bab5213"
requires "questionable"
include "build.nims"
task testAll, "Run all test suites":
exec "nimble install -d -y"
withDir "testmodule":
exec "nimble testAll"
task test, "Run the test suite":
exec "nimble install -d -y"
withDir "testmodule":
exec "nimble test"
task testPart1, "Run the test suite part 1":
exec "nimble install -d -y"
withDir "testmodule":
exec "nimble testPart1"
task testPart2, "Run the test suite part 2":
exec "nimble install -d -y"
withDir "testmodule":
exec "nimble testPart2"
task coverage, "Run the test coverage":
exec "nimble install -d -y"
withDir "testmodule":
exec "nimble coverage"

11
tests/test.nimble Normal file
View File

@ -0,0 +1,11 @@
# Package
version = "0.4.0"
author = "Status Research & Development GmbH"
description = "Tests for Codex DHT"
license = "MIT"
# Dependencies
requires "asynctest >= 0.5.3 & < 0.6.0"
include "build.nims"