[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:
parent
28294d431a
commit
03c8ceccf9
|
@ -185,4 +185,4 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: nim-dagger
|
working-directory: nim-dagger
|
||||||
run: |
|
run: |
|
||||||
make test
|
make testAll
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -75,11 +75,16 @@ else
|
||||||
detected_OS := $(strip $(shell uname))
|
detected_OS := $(strip $(shell uname))
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Builds and run the test suite
|
# Builds and run a part of the test suite
|
||||||
test: | build deps
|
test: | build deps
|
||||||
echo -e $(BUILD_MSG) "build/$@" && \
|
echo -e $(BUILD_MSG) "build/$@" && \
|
||||||
$(ENV_SCRIPT) nim test $(NIM_PARAMS) dagger.nims
|
$(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
|
# symlink
|
||||||
dagger.nims:
|
dagger.nims:
|
||||||
ln -s dagger.nimble $@
|
ln -s dagger.nimble $@
|
||||||
|
|
|
@ -40,7 +40,10 @@ task testDagger, "Build & run Dagger tests":
|
||||||
task testContracts, "Build & run Dagger Contract tests":
|
task testContracts, "Build & run Dagger Contract tests":
|
||||||
test "testContracts", "tests/", "-d:chronicles_log_level=WARN"
|
test "testContracts", "tests/", "-d:chronicles_log_level=WARN"
|
||||||
|
|
||||||
task test, "Run all tests":
|
task test, "Run tests":
|
||||||
|
testDaggerTask()
|
||||||
|
|
||||||
|
task testAll, "Run all tests":
|
||||||
testDaggerTask()
|
testDaggerTask()
|
||||||
testContractsTask()
|
testContractsTask()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue