rust-cpp icon indicating copy to clipboard operation
rust-cpp copied to clipboard

Using cpp! macro in integration tests

Open Ayush1325 opened this issue 2 years ago • 1 comments

Is there a way to use cpp! in integration tests? Currently, in the build script, we pass project root. However, integration tests don't get included in the library root and thus the cpp code is not generated. Calling build on integration test file separately does not work either. So is there any solution for this?

Ayush1325 avatar Jan 17 '22 16:01 Ayush1325

Calling build on integration test file separately does not work either.

Why doesn't that work?

I guess then what you need to do is to move such tests to a separate crate so the test can have their build script.

ogoffart avatar Apr 29 '22 07:04 ogoffart