From c302469e10f4db273c94bc9c46ee519c32fc2827 Mon Sep 17 00:00:00 2001 From: lordofwizard Date: Wed, 16 Oct 2024 21:36:37 +0530 Subject: [PATCH 1/4] check this --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 0355e9e..bc3b0d1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -4,6 +4,8 @@ fn main() { fn add(a: i32, b: i32) -> i32 { a + b + + } #[cfg(test)] From 0d00ccaf05c18c6ea447394530a786459cdb0da2 Mon Sep 17 00:00:00 2001 From: lordofwizard Date: Wed, 16 Oct 2024 21:39:30 +0530 Subject: [PATCH 2/4] added automatic workflow without compile logs --- .github/workflows/default-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/default-test.yml b/.github/workflows/default-test.yml index 23e0f49..9472f7c 100644 --- a/.github/workflows/default-test.yml +++ b/.github/workflows/default-test.yml @@ -27,5 +27,5 @@ jobs: # sudo apt-get install -y libsqlite3-dev # Add any necessary system dependencies here - name: Run Cargo Test - run: cargo test + run: cargo test --quiet From a70a470b09ae41183112b14c0abd0a5a42866d8e Mon Sep 17 00:00:00 2001 From: lordofwizard Date: Wed, 16 Oct 2024 21:40:16 +0530 Subject: [PATCH 3/4] Removed build deps and added quite in tests --- Cargo.toml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index e206284..9f17ac2 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -6,12 +6,12 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -config = "0.14.0" -confy = "0.6.1" -serde = "1.0.197" -serde_toml = "0.0.1" -serde_json = "*" -toml = "0.8.12" -reqwest = { version = "0.12.4", features = ["blocking", "json"] } -clap = { version = "4.5.7", features = ["derive"]} -colored = "*" +#config = "0.14.0" +#confy = "0.6.1" +#serde = "1.0.197" +#serde_toml = "0.0.1" +#serde_json = "*" +#toml = "0.8.12" +#reqwest = { version = "0.12.4", features = ["blocking", "json"] } +#clap = { version = "4.5.7", features = ["derive"]} +#colored = "*" From df527b1df6c62f4c2d9c377ad2fe333963be196d Mon Sep 17 00:00:00 2001 From: lordofwizard Date: Wed, 16 Oct 2024 21:41:32 +0530 Subject: [PATCH 4/4] Removed build deps and added quite in tests --- src/main.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index bc3b0d1..8cb8f46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,7 +11,6 @@ fn add(a: i32, b: i32) -> i32 { #[cfg(test)] mod tests { use super::*; - #[test] fn test_add() { assert_eq!(add(2, 3), 5);