I actually post this to see if I do this correctly. I kinda understand how macros work but importing them is a pain.
Whatever, so there's a great package called galvanic-test. I added it to my Cargo file. I used extern crate
at the root of my crate. I imported test_suite
macro in my chunk
submodule and used it accordingly.
Yet cargo build
or cargo test
panics:
error: cannot find macro `test_suite` in this scope
--> src/chunk.rs:138:1
|
138 | test_suite! {
| ^^^^^^^^^^
I do not understand. I think my steps are correct right?
Environment
- cargo 1.40.0 (bc8e4c8be 2019-11-22)
- rustc 1.40.0 (73528e339 2019-12-16)