Skip to content

Commit

Permalink
Adding integration_tests
Browse files Browse the repository at this point in the history
  • Loading branch information
simsekgokhan committed Mar 21, 2024
1 parent 244ee60 commit efb710f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/integration_tests/calc_test.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#[test]
fn test_add_one() {
assert_eq!(crate::unit_tested_file::add_one(1), 2);
}
1 change: 1 addition & 0 deletions src/integration_tests/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
mod calc_test;
4 changes: 4 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

// mod doc_test;
// todo: failed to resolve: use of undeclared crate or module `doc_test`

#[cfg(test)]
mod integration_tests;

mod async_;
mod averaged_collection;
mod cfg;
Expand Down

0 comments on commit efb710f

Please sign in to comment.