-
Notifications
You must be signed in to change notification settings - Fork 44
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
[Issue 21] Migrate to pytest #30
Conversation
tests/test_safety_oracle.py
Outdated
from testing_language import TestLangCBC | ||
|
||
|
||
@pytest.mark.parametrize( |
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.
@naterush We can parametrize all of the tests in this file in the following format. On the one hand, it is great for code reuse. On the other, it makes it a little more nebulous as to what the crazy test string relates to (going from having a function name to just a comment defining it).
Thoughts on porting the rest of the tests in this file to this format?
I'm not sure which I prefer
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.
@djrtwo hmm, good question. I don't feel particularly strongly either way, but am kinda leaning to keeping them as separate tests.
The code duplication we could get rid up would probably be counter-balanced by the extra comments we would need to explain each test. I experimented by moving the all safety oracle tests to the parameterized format, and things got dense and unreadable pretty quickly.
This works super great for testing utils though - just don't think it's the best for the test language :) Let me know what you think.
readme should be updated; not sure what the exact |
@zramsay readme updated |
👍 works great, tests pass |
@djrtwo this looks great - should be good to merge! I removed the parametrized version of the testing_language stuff based on comments above. Happy to add back/move rest of tests to that format if we decide it's better. Let me know. I'm going to add an issue about the errors rather than adding it here so we can discuss further. |
Ah, let's add command line option for toggling reporting before merging this. |
…-casper into chore/migrate-to-pytest
add .circleci/config.yml
|
fixed. ready for review |
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.
Looks great. Things are starting to get real legit :~). Merging now!
What was wrong
Issue #21
Issue #28
How was it fixed