-
Notifications
You must be signed in to change notification settings - Fork 103
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
Add unit tests for concrete playback, refactor util functions for easier testing #2188
Add unit tests for concrete playback, refactor util functions for easier testing #2188
Conversation
…d-concrete-playback-unit-tests
…/jaisnan/kani into Add-concrete-playback-unit-tests
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.
I've read the code but I'm still confused about the change in the function names of the tests. Are the generated unit tests runnable using these names without any modifications?
No, those generated unit tests are not runnable. I can make another revision fixing the names as well (will just need one more layer of formatting the names of the functions). |
I love the idea of adding the name of the original harness. However, I think this new name schema will break the |
Yes, I am trying to find a way to make the UX work, but if not, I'll just go back to the old naming scheme. |
Can you remove all the modules and only keep the function name? |
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.
That's awesome. Thanks @jaisnan
Once you merge this, can you please update our documentation as well to reflect the new convention please?
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.
Since the PR changes the name of concrete playback tests, the PR title should mention that.
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.
BTW, can you please either extend an existing test or add a new test for the new name schema? Thanks
…/jaisnan/kani into Add-concrete-playback-unit-tests
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.
I'm a bit confused about the description in the PR:
Functions weren't given their scope prefixes before which lead to multiple generated unit tests in the same file being called "kani_concrete_playback_harness", which is confusing to the user. This change renames them to use their scope as prefixes if available (using the "pretty name"). For example - "kani_concrete_playback_second::harness".
Can you clarify with an example?
Description of changes:
This PR adds
pretty_name
instead of themangled_name
.Resolved issues:
Partly resolves #1502
Call-outs:
Testing:
How is this change tested? Unit and regression tests
Is this a refactor change? Yes
Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.