First of all you have to add this dependency to your
[dev-dependencies] test-generator-utest = "^0.2"
The test-functionality is supports stable Rust.
ⓘThis example is not tested
#![cfg(test)] extern crate test_generator-utest; // Don't forget that procedural macros are imported with `use` statement, // for example importing the macro 'test_resources' #![cfg(test)] use test_generator-utest::utest;
Macro implementing the 3 phases setup/test/teardown