Rust Integration Tests


Example

lib.rs:

pub fn to_test(output: bool) -> bool {
    output
}

Each file in the tests/ folder is compiled as single crate. tests/integration_test.rs

extern crate test_lib;
use test_lib::to_test;

#[test]
fn test_to_test(){
    assert_eq!(to_test(true), true);
}