Add ability to use quickcheck with E2E testing #1647
Labels
A-ink_e2e
[ink_e2e] Work item
B-research
Research task that has open questions that need to be resolved.
We should allow for the possibility of using quickcheck with our E2E testing framework.
The problem here is that the
#[quickcheck]
macro already generates code which contains the#[test]
attribute (whereas we need#[ink_e2e::test]
. But I think we can access the quickcheck functionality via some other way directly calling functions on the crate.ToDo 1
Please investigate if we can find a way to make this work:
I think having this ☝️ would be the best API, but I think it's unlikely that we can get this to work. The other way would be sth like
and then pass the arguments through. So
quickcheck
would be a direct dependency ofink_e2e
and we would likely call a Rust function directly on that crate.ToDo 2: Benchmark
After #1642 I'm not sure how running quickcheck on top of our E2E testing will behave. We should have some numbers of how long it takes to e.g. fuzz a contract message 10_000 times.
The text was updated successfully, but these errors were encountered: