Closed Tronikelis closed 1 year ago
That should be available in the Testing
trait, if you try use thruster::{m, middleware_fn, testing, Testing};
, does that fix the issue?
Testing
does not seem to exist for me:
error[E0432]: unresolved import `thruster::Testing`
--> tests\main.rs:6:53
|
6 | HyperRequest, MiddlewareNext, MiddlewareResult, Testing,
| ^^^^^^^
| |
| no `Testing` in the root
| help: a similar name exists in the module: `testing`
sorry! Typo, it should be Testable
. Check out the walkthrough website (it's a smidge out of date with the addition of contex_state
) here.
👍
Hey, I wanted to try writing simple tests.
The readme says:
But on thruster
1.3.3
with the hyper server thetesting::get
doesn't seem to get exported. Take a look at my example:main.rs
Cargo.toml
:cargo build
:It works without the
hyper_server
feature enabled though