cargo/tests/tests.rs
Carl Lerche d1ec90b3d8 Initial stab at integration tests
At the same time, we started adding a generic error handling concept to
Cargo.

The idea is that every Result gets converted to a CargoError, which
includes all the information that Cargo needs to print out a friendly
human error message and exit gracefully.
2014-03-20 12:12:47 -07:00

19 lines
291 B
Rust

#[feature(macro_rules)];
#[allow(deprecated_owned_vector)];
extern crate cargo;
extern crate hamcrest;
macro_rules! test(
($name:ident $expr:expr) => (
#[test]
fn $name() {
setup();
$expr;
}
)
)
mod support;
mod test_cargo_compile;