1 2 3 4 5 6 7 8 9 10 11 12
use testadder; mod common; #[test] fn it_adds_two() { common::setup(); assert_eq!(4, testadder::add_two(2)); } // cargo test --test integration_test::it_adds_two // cargo test --test integration_test