diff --git a/integrationtests/Cargo.toml b/integrationtests/Cargo.toml index 6bf2fab3..47993628 100644 --- a/integrationtests/Cargo.toml +++ b/integrationtests/Cargo.toml @@ -17,9 +17,6 @@ path = "tests/tests.rs" name = "lnbitsmock" path = "src/lnbitsmock.rs" -[features] -integration-tests = [] - [dependencies] rand = "0.8.5" axum = "0.7.3" diff --git a/integrationtests/tests/tests.rs b/integrationtests/tests/tests.rs index 6807fce0..61e24ac5 100644 --- a/integrationtests/tests/tests.rs +++ b/integrationtests/tests/tests.rs @@ -15,7 +15,7 @@ use tokio::runtime::Runtime; use tokio::time::{sleep_until, Instant}; #[test] -#[cfg(feature = "integration-tests")] +#[ignore] pub fn test_integration() -> anyhow::Result<()> { use mokshamint::config::{DatabaseConfig, LightningFeeConfig, ServerConfig}; @@ -139,7 +139,6 @@ pub fn test_integration() -> anyhow::Result<()> { Ok(()) } -#[cfg(feature = "integration-tests")] fn read_fixture(name: &str) -> anyhow::Result { let base_dir = std::env::var("CARGO_MANIFEST_DIR")?; let raw_token = std::fs::read_to_string(format!("{base_dir}/tests/fixtures/{name}"))?; diff --git a/justfile b/justfile index 53830a4b..cbbde988 100644 --- a/justfile +++ b/justfile @@ -88,7 +88,7 @@ run-web: # run integrationtests run-itests: cd integrationtests && \ - cargo test --features integration-tests + cargo test -- --ignored # build flutter desktop-app