Concrete playback needs tweak for harnesses under cfg(test)
#1577
Labels
[C] Bug
This is a bug. Something isn't working.
cfg(test)
#1577
The current instructions for the concrete playback feature include adding
kani
in thedev-dependencies
section. If the harness of interest is under#[cfg(test)]
, thencargo kani
needs to be run with the--tests
option. However, including--tests
results in trying to compile the Kani crate with Kani! This fails with the following error:The workaround I've used is to remove
kani
from thedev-dependencies
, before runningcargo kani
, then add it back before running debugging the generated harness.Steps to reproduce:
cargo new --lib conc_playback
cd conc_playback
kani
todev-dependencies
inCargo.toml
:cargo kani --tests
The text was updated successfully, but these errors were encountered: