Closed emoon closed 8 years ago
Did you feel this was the wrong approach? I hadn't gotten around to reviewing the code yet.
No, I think the approach is correct and the PR work as expected and I use this in some projects already. I want to add another thing which is related to how on does (unit) testing with Rust and Cargo. The way it works pretty much is that if one can write something like this
#[test]
fn foo() {
assert!(...);
}
This code is only executed when do cargo test
on a project which is targeted at testing and there is a similar thing for benchmarks which has a #[bench]
attribute to the function.
I would like to add support for that also but I really don't know how to do it but the changes as they are could be merged as is and this support could be added later.
The following changes has been made: