summaryrefslogtreecommitdiff
path: root/testing/tests
diff options
context:
space:
mode:
Diffstat (limited to 'testing/tests')
-rw-r--r--testing/tests/common/mod.rs3
-rw-r--r--testing/tests/integration_test.rs4
2 files changed, 6 insertions, 1 deletions
diff --git a/testing/tests/common/mod.rs b/testing/tests/common/mod.rs
new file mode 100644
index 0000000..c00b3a6
--- /dev/null
+++ b/testing/tests/common/mod.rs
@@ -0,0 +1,3 @@
+pub fn setup() {
+ // setup code
+}
diff --git a/testing/tests/integration_test.rs b/testing/tests/integration_test.rs
index e0dbe08..ce04ce3 100644
--- a/testing/tests/integration_test.rs
+++ b/testing/tests/integration_test.rs
@@ -1,7 +1,9 @@
use testing;
+mod common;
#[test]
fn it_adds_two() {
- assert_eq!(4, testing::add_two(2));
+ common::setup();
+ assert_eq!(4, testing::add_two(2));
}