test-context icon indicating copy to clipboard operation
test-context copied to clipboard

A Rust library to allow for easy setup/teardown implementations for tests

Results 6 test-context issues
Sort by recently updated
recently updated
newest added

Requires no adaptations. Fixes #22 Also, thanks for this very useful crate :)

It would be useful if test-context-macros was update to syn 2.0, to avoid having to depend on multiple syn versions.

When doing non-trivial work in setup or teardown, e.g. opening a DB connection, clearing out the database and adding some test data, it would be useful to be able to...

`AsyncTestContext` was originally implemented by using `#[async_trait::async_trait]`. Unfortunately this forces futures to be `Send` which sometimes unfeasible. I've added a separate feature to the create `async_send` which is on by...

```rs error[E0195]: lifetime parameters or bounds on associated function `setup` do not match the trait declaration --> src/db.rs:58:18 | 58 | async fn setup() -> TestDb { | ^^^^^^^ lifetimes...

`#[test]` functions in rust can return a Result to indicate a test failed. this is very convenient so you can use the `?` operator. When converting test functions to use...