Closed taqtiqa-mark closed 5 months ago
Workaround for the test-project
:
cargo test -- --test-threads=1
However, this does not workaround the issue in the test-virtual
.
This may be tangentially related to #83/#84. I don't think #84 will fix it but perhaps better choice of subdirectory name would.
tests/expand/second.rs - different! Diff [lines: 6 added, 1 removed]: -------------------------- #[macro_use] extern crate test_project; pub fn main() { + { + let mut temp_vec = Vec::new(); + temp_vec.push(1); + temp_vec + }; - (); } + --------------------------
This is due to the crate that defining macro is "wrkspc-test" but you are importing extern crate test_project;
.
Changing extern crate test_project;
to extern crate wrkspc_test;
would give the correct result.
Closing as this doesn't seem to macrotest bug.
Thank you for the effort you have put into making macrotest, and for making it open source.
I ran into this issue in the course of trying to isolate what appears to be unexpected behavior.
PR #72 proposes to add a workspace project example, and this error can be observed by checking out the first commit in the PR.
Should show these two results for
parallel_1
andparallel_2
test cases: