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