Skip to content
Snippets Groups Projects
Commit f77a5dc1 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

fix(#125): feat: cargo `ti`,`ta` and `cucumber-node`

parent 0486a7ba
No related branches found
No related tags found
No related merge requests found
Pipeline #33611 failed
[alias] [alias]
cucumber = "test -p duniter-end2end-tests --test cucumber_tests --"
sanity-gdev = "test -p duniter-live-tests --test sanity_gdev -- --nocapture" sanity-gdev = "test -p duniter-live-tests --test sanity_gdev -- --nocapture"
tu = "test --workspace --exclude duniter-end2end-tests --exclude duniter-live-tests" tu = "test --workspace --exclude duniter-end2end-tests --exclude duniter-live-tests"
ti = "test -p duniter-end2end-tests --test cucumber_tests --"
ta = "test --workspace --exclude duniter-live-tests"
tb = "test --features runtime-benchmarks -p" tb = "test --features runtime-benchmarks -p"
rbp = "run --release --features runtime-benchmarks -- benchmark pallet --chain=dev --steps=50 --repeat=20 --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=. --pallet" rbp = "run --release --features runtime-benchmarks -- benchmark pallet --chain=dev --steps=50 --repeat=20 --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=. --pallet"
xtask = "run --package xtask --" xtask = "run --package xtask --"
cucumber-node = "test -- --chain=gdev_dev --execution=Native --sealing=manual --force-authoring --rpc-cors=all --tmp --ws-port 9944 --alice"
...@@ -54,13 +54,8 @@ RUN set -x && \ ...@@ -54,13 +54,8 @@ RUN set -x && \
# Run tests if requested, expted when cross-building # Run tests if requested, expted when cross-building
ARG cucumber=0 ARG cucumber=0
RUN if [ "$cucumber" != 0 ] && [ "$TARGETPLATFORM" = "$BUILDPLATFORM" ]; then \ RUN if [ "$cucumber" != 0 ] && [ "$TARGETPLATFORM" = "$BUILDPLATFORM" ]; then \
cargo test --workspace --exclude duniter-end2end-tests --exclude duniter-live-tests && \ cargo tu && \
cargo cucumber -i account_creation* && \ cargo cucumber && \
cargo cucumber -i certification* && \
cargo cucumber -i identity_creation* && \
cargo cucumber -i monetary_mass* && \
cargo cucumber -i oneshot_account* && \
cargo cucumber -i transfer_all* && \
cd target/debug/deps/ && \ cd target/debug/deps/ && \
rm cucumber_tests-*.d && \ rm cucumber_tests-*.d && \
mv cucumber_tests* ../../../build/duniter-cucumber; \ mv cucumber_tests* ../../../build/duniter-cucumber; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment