Skip to content

Commit 5111087

Browse files
use another tracing crate for tests. enable --no-capture
Signed-off-by: Soc Virnyl Estela <contact@uncomfyhalomacro.pl>
1 parent 5c8db7d commit 5111087

File tree

6 files changed

+55
-38
lines changed

6 files changed

+55
-38
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ jobs:
3131
- name: Tests
3232
run: |
3333
export CC=clang
34-
cargo test
34+
cargo test -- --nocapture

Cargo.lock

Lines changed: 50 additions & 28 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[workspace.package]
22
authors = ["Soc Virnyl Estela"]
3-
version = "5.1.6"
3+
version = "5.1.7-dev"
44
edition = "2021"
55
license = "MPL-2.0"
66
repository = "https://github.com/openSUSE-Rust/roast"

libroast/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ rayon = "1.10.0"
2929

3030
[dev-dependencies]
3131
terminfo = "0.9.0"
32-
tracing-test = { version = "0.2", features = ["no-env-filter"] }
32+
test-log = "^0.2"
3333
sha3 = { version = "0.11.0-pre.4" }
3434
hex-literal = "0.4.1"
3535

libroast/tests/shame.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ use std::{
55
PathBuf,
66
},
77
};
8+
use test_log::test;
89
#[allow(unused_imports)]
910
use tracing::{
1011
debug,
@@ -14,12 +15,10 @@ use tracing::{
1415
warn,
1516
Level,
1617
};
17-
use tracing_test::traced_test;
1818
use walkdir::WalkDir;
1919

2020
const MANIFEST_DIR: &str = std::env!("CARGO_MANIFEST_DIR", "No such manifest dir");
2121

22-
#[traced_test]
2322
#[test]
2423
fn is_gz_tarball() -> io::Result<()>
2524
{
@@ -51,7 +50,6 @@ fn is_gz_tarball() -> io::Result<()>
5150
Ok(())
5251
}
5352

54-
#[traced_test]
5553
#[test]
5654
fn is_xz_tarball() -> io::Result<()>
5755
{
@@ -83,7 +81,6 @@ fn is_xz_tarball() -> io::Result<()>
8381
Ok(())
8482
}
8583

86-
#[traced_test]
8784
#[test]
8885
fn is_zst_tarball() -> io::Result<()>
8986
{
@@ -115,7 +112,6 @@ fn is_zst_tarball() -> io::Result<()>
115112
Ok(())
116113
}
117114

118-
#[traced_test]
119115
#[test]
120116
fn is_bz2_tarball() -> io::Result<()>
121117
{
@@ -147,7 +143,6 @@ fn is_bz2_tarball() -> io::Result<()>
147143
Ok(())
148144
}
149145

150-
#[traced_test]
151146
#[test]
152147
fn is_vanilla_tarball() -> io::Result<()>
153148
{

roast-cli/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ tracing = { version = "0.1", features = [
1616
"release_max_level_debug",
1717
] }
1818
tracing-subscriber = { version = "0.3", features = ["env-filter"] }
19-
libroast = { path = "../libroast", version = "5.1.3-dev" }
19+
libroast = { path = "../libroast", version = "5.1.7-dev" }
2020
walkdir = "2.5.0"
2121
tempfile = "3.12.0"
2222

0 commit comments

Comments
 (0)