-
Notifications
You must be signed in to change notification settings - Fork 1
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
UI/UX improvements #53
Conversation
0c31e33
to
f43b9f0
Compare
src/komet/komet.py
Outdated
_exec_test(wasm=wasm, id=args.id) | ||
if args.max_examples < 1: | ||
raise ValueError(f'--max-examples must be a positive integer (greater than 0), given {args.max_examples}') | ||
_exec_test(wasm=wasm, max_examples=args.max_examples, id=args.id) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a way to run unlimited examples? I think this option ends up getting sent to hypothesis
, it might have support for supplying 0
or -1
for that, you'll have to check.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hypothesis complains when it is less than 1:
hypothesis.errors.InvalidArgument: max_examples=-1 should be at least one. You can disable example generation with the `phases` setting instead.
def deploy_and_run( | ||
self, contract_wasm: Path, child_wasms: tuple[Path, ...], max_examples: int = 100, id: str | None = None | ||
) -> None: | ||
"""Run all of the tests in a soroban test contract. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please update the docstrings.
9691bd1
to
ecb827a
Compare
Added the following command line arguments:
--max-examples MAX_EXAMPLES
: Maximum number of inputs for fuzzing (default: 100)--id ID
: Name of the test function in the testing contract--directory DIRECTORY
,-C DIRECTORY
: The working directory for the command (defaults to the current working directory).