Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mockup data in Zencode Given #989

Open
jaromil opened this issue Dec 11, 2024 · 1 comment
Open

Mockup data in Zencode Given #989

jaromil opened this issue Dec 11, 2024 · 1 comment
Assignees

Comments

@jaromil
Copy link
Member

jaromil commented Dec 11, 2024

Add a conf directive that automatically generates mockup contents for all Given directives, simulating the presence of correct input.

This feature will help to test scripts in the absence of inputs, passing all checks in the Given phase.

To be seen how to react to schemas, but in the case of strings and string dictionaries (most used in didroom) it will be immediately useful.

Closely related to Fuzzing PR, moves the fuzzying logic one step higher into Zencode.

@jaromil jaromil self-assigned this Dec 11, 2024
@matteo-cristino
Copy link
Collaborator

I do not know how to do it, but if we have "types" for schemas, then we could use them for this puropose. Moreover this will be also super usefull for js introspect API that will be able to return a type for a schema improving user experience both on ncr and gemini (this API is used to automatically retrieve what user should pass in input to the contract)

@jaromil jaromil changed the title Fuzzying in Zencode Given Mockup data in Zencode Given Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants