Skip to content

Commit

Permalink
Merge pull request #21 from bacpop/dev-assert
Browse files Browse the repository at this point in the history
Move test dependencies to test only
  • Loading branch information
johnlees authored Feb 20, 2023
2 parents 55d78aa + 8fc93db commit 893a674
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ hashbrown = "0.12"
ahash = "0.8.2"
ndarray = { version = "0.15.6", features = ["serde"] }
num-traits = "0.2.15"

[dev-dependencies]
# testing
snapbox = "0.4.3"
predicates = "2.1.5"
assert_fs = "1.0.10"
pretty_assertions = "1.3.0"
3 changes: 3 additions & 0 deletions tests/align.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ use crate::common::*;

use hashbrown::HashSet;

#[cfg(test)]
use pretty_assertions::{assert_eq};

// NB: to view output, uncomment the current_dir lines

#[test]
Expand Down
3 changes: 3 additions & 0 deletions tests/common/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ use predicates::prelude::*;

use hashbrown::HashSet;

#[cfg(test)]
use pretty_assertions::{assert_eq};

// Creates correct path for input/output files
static FILE_IN: &'static str = "tests/test_files_in";
static FILE_TEST: &'static str = "tests/test_results_correct";
Expand Down
3 changes: 3 additions & 0 deletions tests/fasta_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ use hashbrown::HashSet;
pub mod common;
use crate::common::{var_hash, TestDir, TestSetup};

#[cfg(test)]
use pretty_assertions::{assert_eq};

#[test]
fn align_n() {
let sandbox = TestSetup::setup();
Expand Down
3 changes: 3 additions & 0 deletions tests/fastq_input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ use snapbox::cmd::{cargo_bin, Command};

use hashbrown::HashSet;

#[cfg(test)]
use pretty_assertions::{assert_eq};

pub mod common;
use crate::common::*;

Expand Down
3 changes: 3 additions & 0 deletions tests/skf_ops.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use snapbox::cmd::{cargo_bin, Command};

#[cfg(test)]
use pretty_assertions::{assert_eq};

pub mod common;
use crate::common::{TestDir, TestSetup};

Expand Down

0 comments on commit 893a674

Please sign in to comment.