[contracts] Separate nimble task to run all tests

A simple "nimble test" won't require you to run a hardhat
node with the contracts, but a "nimble testAll" will.
This commit is contained in:
Mark Spanbroek 2022-03-28 10:18:53 +02:00 committed by markspanbroek
parent 28294d431a
commit 03c8ceccf9
3 changed files with 11 additions and 3 deletions

View File

@ -185,4 +185,4 @@ jobs:
shell: bash
working-directory: nim-dagger
run: |
make test
make testAll

View File

@ -75,11 +75,16 @@ else
detected_OS := $(strip $(shell uname))
endif
# Builds and run the test suite
# Builds and run a part of the test suite
test: | build deps
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim test $(NIM_PARAMS) dagger.nims
# Builds and runs all tests
testAll: | build deps
echo -e $(BUILD_MSG) "build/$@" && \
$(ENV_SCRIPT) nim testAll $(NIM_PARAMS) dagger.nims
# symlink
dagger.nims:
ln -s dagger.nimble $@

View File

@ -40,7 +40,10 @@ task testDagger, "Build & run Dagger tests":
task testContracts, "Build & run Dagger Contract tests":
test "testContracts", "tests/", "-d:chronicles_log_level=WARN"
task test, "Run all tests":
task test, "Run tests":
testDaggerTask()
task testAll, "Run all tests":
testDaggerTask()
testContractsTask()