Combine proptests and transcripts to perform top-level integration tests #1021
Labels
A-rust
Area: Updates to Rust code
C-cleanup
Category: This is a cleanup
C-enhancement
Category: This is an improvement
S-blocked
Status: Blocked on other tasks
Is your feature request related to a problem? Please describe.
In #918, we wanted to move the block time check tests to zebra-consensus, but they depend on zebra-chain::generate.
is_time_valid_at
is also used in test code, specificallychain/src/block/tests/vectors.rs
.generate
code, which isn't exposed to the rest of the crate APIDescribe the solution you'd like
generate
code should be expressed as proptest strategies (Rewriteblock::tests::generate
as proptest strategies. #919) to fix this.Post-implementation cleanup
zebra_chain::block::Header::is_time_valid_at
intozebra_consensus::block::check::is_time_valid_at
zebra_chain::block::header::BlockTimeError::InvalidBlockTime
the source ofzebra_consensus::error::BlockError::Time
Originally posted by @yaahc in #1146 (comment)
Describe alternatives you've considered
Keep the current implementation, which generates blocks without using proptests.
Additional context
This issue is blocked on #919
The text was updated successfully, but these errors were encountered: