Run tests normally

This commit is contained in:
Matteo Settenvini 2022-09-05 23:45:38 +02:00
parent 8d47b339f6
commit 256267c213
Signed by: matteo
GPG Key ID: 8576CC1AD97D42DF
1 changed files with 10 additions and 9 deletions

View File

@ -44,18 +44,19 @@ cargo:check:
cargo:test:
extends: .with_rust_image
stage: test
artifacts:
reports:
coverage_report:
coverage_format: cobertura
path: cobertura.xml
junit: junit.xml
# artifacts:
# reports:
# coverage_report:
# coverage_format: cobertura
# path: cobertura.xml
# junit: junit.xml
variables:
RUST_BACKTRACE: 1
CARGO_COMMON_ARGS: --workspace --no-default-features
CARGO_COMMON_ARGS: --workspace
script:
- mkdir -p .git/hooks # for rusty-hook
- cargo test ${CARGO_COMMON_ARGS}
# - cargo tarpaulin ${CARGO_COMMON_ARGS} --locked -o Xml
- cargo test ${CARGO_COMMON_ARGS} -- -Z unstable-options --format json | tee test-results.json
- cargo2junit < test-results.json > junit.xml
# - cargo test ${CARGO_COMMON_ARGS} -- -Z unstable-options --format json | tee test-results.json
# - cargo2junit < test-results.json > junit.xml
# - cargo bench ${CARGO_COMMON_ARGS} # DISABLED UNTIL WE HAVE BENCH TESTS