-
Notifications
You must be signed in to change notification settings - Fork 109
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
Tests #59
Comments
@pop if anything above looks interesting, let me know and I can provide more detail. Would be great to have some help in making rx more robust. |
If I had to pick one, fuzz-testing the commands that take user input seems interesting. i.e.,
That said I have not dug too far into any of the topics so if there is something else you'd like to pass off to a contributor I'm open to one of the other topics. I'm not entirely sure how to do headless testing but I'm sure once I get started writing the headless fuzz-tests would be pretty straight forward. |
Great, I also think the fuzz testing will be the biggest ROI at this point, but it's also possibly more work than the others. A good place to start looking is the
Both might be useful, but 2. is less likely to trigger complex behavior, since most inputs won't be valid commands. Another thing that might be helpful alongside this is to add another input which is the current session Finally there's the question of whether to turn the renderer and platform layer off or not. I think to start out it would make sense, ie. to use a dummy renderer ( These are my initial thoughts. |
parser.rs
: the parser should be property tested with something likequickcheck
cmd.rs
:CommandLine
should be tested with ascii and utf8resources.rs
: Gif export should be testedsession.rs
: inputs (mouse, keyboard) should be fuzz-tested to ensure nothing can crash the program.session.rs
:selection/*
commands should be tested in headless modesession.rs
: all commands that take user input should be tested with unexpected inputs to ensure there is no division by zero for examplelib.rs
: rx's entry point should be tested with different inputs[modified]
flag on itThe text was updated successfully, but these errors were encountered: