You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, running cargo test requires a substrate binary on your PATH. This used to be a runtime error (and only the affected tests would fail), but now it is a compile-time error because we now generate the runtime details at build time against the substrate binary we'll point at for tests.
I'd suggest hiding the integration tests behind an integration-tests feature flag, so that this is not the case.
If any files are generated (cargo c --tests is reported to have left behind a client/dev-chain.json file for instance), put generation of them behind the feature flag if applicable, and at least write them to a temp fodlere if possible.
The text was updated successfully, but these errors were encountered:
Currently, running
cargo test
requires asubstrate
binary on your PATH. This used to be a runtime error (and only the affected tests would fail), but now it is a compile-time error because we now generate the runtime details at build time against thesubstrate
binary we'll point at for tests.I'd suggest hiding the integration tests behind an
integration-tests
feature flag, so that this is not the case.If any files are generated (
cargo c --tests
is reported to have left behind aclient/dev-chain.json
file for instance), put generation of them behind the feature flag if applicable, and at least write them to a temp fodlere if possible.The text was updated successfully, but these errors were encountered: