Skip to content

Commit f8ee551

Browse files
authored
Improve CI speed by removing duplicate run of tests (#1822)
1 parent 1b410d0 commit f8ee551

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

scripts/test.sh

+7-5
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@
22

33
set -eu
44

5-
cargo test --workspace --all-features "$@" -- --test-threads=1
5+
echo "Running tests for all packages in workspace with --all-features"
6+
cargo test --workspace --all-features
67

78
# See https://github.com/rust-lang/cargo/issues/5364
9+
echo "Running tests for opentelemetry package with --no-default-features"
810
cargo test --manifest-path=opentelemetry/Cargo.toml --no-default-features
911

1012
# Run global tracer provider test in single thread
11-
cargo test --manifest-path=opentelemetry/Cargo.toml --all-features -- --ignored --test-threads=1
12-
13-
cargo test --manifest-path=opentelemetry/Cargo.toml --all-features
14-
cargo test --manifest-path=opentelemetry-zipkin/Cargo.toml --all-features
13+
# //TODO: This tests were not running for a while. Need to find out how to run
14+
# run them. Using --ignored will run other tests as well, so that cannot be used.
15+
# echo "Running global tracer provider for opentelemetry-sdk package with single thread."
16+
# cargo test --manifest-path=opentelemetry-sdk/Cargo.toml --all-features -- --test-threads=1

0 commit comments

Comments
 (0)