[][src]Crate test_generator_utest

Overview

This crate provides the macro utest!(..) Implementing the 3 phases setup/test/teardown. Crates.io MIT License Apache License Example

Documentation

Repository

Getting Started

First of all you have to add this dependency to your Cargo.toml:

[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;

Macros

utest

Macro implementing the 3 phases setup/test/teardown