test

test/main.rs:

# crate name has to exist in Cargo.toml in root
extern crate adder;

#[test]
fn it_works() {
    assert_eq!(4, adder::add_two(2));
}

With test/main.rs do:

$ cargo test

Travis

language: rust
rust:
  - stable
  - beta
  - nightly
matrix:
  allow_failures:
    - rust: nightly

Code coverage

results matching ""

    No results matching ""