Mutant testing (v1)#90
Draft
ikripaka wants to merge 7 commits into
Draft
Conversation
…ns for witness and arguments respectively * extend ui tests to test random generation * add new `RandomArguments` and `RandomWitness` traits for classifying random generation * add random generation expansion in the `include_simf!` macro * add `rand_core` and `rand` dependencies in the workspace
* update macros (add From implementations and other helpers for proptests) * update ui tests * update interface of program creation (change ArgumentsTrait into the Into<Arguments>) * add 2 property tests in fixtures/tests/prop_testing.rs # Conflicts: # crates/build/src/macros/codegen.rs # crates/build/src/macros/core.rs
* add one more contract for testing * adapt previous one with new way of testing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add RandomArguments and RandomWitness trait implementations for witness and arguments, respectively, for the generation of input values in PropTests.
(By now, we have a first version - generating Witness and Arguments together with passing them as input into the contract)
RandomArgumentsandRandomWitnesstraits for classifying random generationinclude_simf!macrorand_coreandranddependencies in the workspaceAdd the
mutantestingmodule insmplx-test, where the logic is implemented.Later, we need to decide how we would like to implement property tests.
We have a limitation in running strategies. Runner seems to cancel the execution of the other strategy after completion of the first one.
Draft tests can be found in
simplex/fixtures/tests/prop_testing.rs.