Skip to content

Mutant testing (v1)#90

Draft
ikripaka wants to merge 7 commits into
devfrom
feat/proptest
Draft

Mutant testing (v1)#90
ikripaka wants to merge 7 commits into
devfrom
feat/proptest

Conversation

@ikripaka

@ikripaka ikripaka commented Jun 8, 2026

Copy link
Copy Markdown
Collaborator
  • This PR suggests a bug fix and I've added the necessary tests.
  • This PR introduces a new feature and I've discussed the update in an Issue or with the team.
  • This PR is just a minor change like a typo fix.

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)

  • 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

Add the mutantesting module in smplx-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.

@ikripaka ikripaka self-assigned this Jun 8, 2026
Base automatically changed from dev to master June 9, 2026 11:57
@ikripaka ikripaka changed the base branch from master to dev June 10, 2026 08:49
ikripaka added 3 commits June 10, 2026 11:57
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant