6 releases

0.1.3 Feb 1, 2020
0.1.2 Jan 27, 2020
0.0.2 Jan 23, 2020

#744 in Testing

Download history 31/week @ 2023-11-26 100/week @ 2023-12-03 38/week @ 2023-12-10 7/week @ 2023-12-17 46/week @ 2023-12-24 4/week @ 2024-01-07 34/week @ 2024-01-14 76/week @ 2024-01-21 24/week @ 2024-01-28 26/week @ 2024-02-04 18/week @ 2024-02-11 47/week @ 2024-02-18 74/week @ 2024-02-25 93/week @ 2024-03-03 13/week @ 2024-03-10

228 downloads per month
Used in rye

MIT/Apache

35KB
807 lines

mimicaw

A library for writing asynchronous tests.


mimicaw is a small library that provides a framework for writing the free-style, asynchronous tests without using the default test harness provided by rustc. The concept and design are strongly inspired by libtest-mimic, but also focuses on the affinity with the async/.await syntax.

Installation

First, add mimicaw as a development dependency of your package. If you are the user of cargo-edit:

$ cargo add --dev mimcaw

The test binaries must explicitly set the harness key to make the default test harness provided by rustc disabled:

[[test]]
name = "mytest"
path = "tests/mytest.rs"
harness = false

Resources

License

This library is licensed under either of

at your option.

Dependencies

~5–7.5MB
~135K SLoC