[][src]Attribute Macro test_context_macros::test_context

#[test_context]

Macro to use on tests to add the setup/teardown functionality of your context.

Ordering of this attribute is important, and typically test_context should come before other test attributes. For example, the following is valid:

#[test_context(MyContext)]
#[test]
#[ignore]
fn my_test() {
}

The following is NOT valid...

#[test]
#[ignore]
#[test_context(MyContext)]
fn my_test() {
}