Skip to content

Commit

Permalink
feat: Add support for disabling pure tests
Browse files Browse the repository at this point in the history
  • Loading branch information
notheotherben committed Jul 14, 2024
1 parent 3d13629 commit f06befe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ tempfile = "3.10.1"
[features]
default = []
openssl_src = ["dep:openssl-sys"]
pure_tests = []

[profile.release]
debug = "limited"
2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@
inherit cargoArtifacts;
partitions = 1;
partitionType = "count";

cargoNextestExtraArgs = "--no-fail-fast --features pure_tests";
});
};

Expand Down
1 change: 1 addition & 0 deletions src/targets/fs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ impl From<&Config> for FileSystemBackupTarget {
mod tests {
use super::*;

#[cfg(not(feature="pure_tests"))]
#[tokio::test]
async fn test_backup() {
let temp_dir = tempfile::tempdir().expect("a temporary directory");
Expand Down

0 comments on commit f06befe

Please sign in to comment.