Skip to main content

xtest

Attribute Macro xtest 

Source
#[xtest]
Expand description

An exposed test. This is a test that will run locally and also be made available to other crates that want to run it in their own context.

For example:

use lightning_macros::xtest;

fn f1() {}

#[xtest(feature = "_externalize_tests")]
pub fn test_f1() {
    f1();
}

Which will include the module if we are testing or the _test_utils feature is on.