-
Notifications
You must be signed in to change notification settings - Fork 224
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
Use pytest #209
Use pytest #209
Conversation
Chainer v2 uses nose. It uses pytest from v3.
Why did coverage increase that much? > Coverage increased (+6.5%) to 79.691% |
It seems nosetests didn't report the coverage by subprocess. |
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.
LGTM except for the duplicated code I mentioned.
'last_wscale': [1, 1e-3], | ||
}) | ||
) | ||
class TestFCSAQFunction(_TestSAQFunction): |
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.
This is a concrete test case, not a base test. It looks the same as TestFCSAQFunction
in tests/q_functions_tests/test_state_action_q_function.py
, so I think it is not necessary.
'last_wscale': [1, 1e-3], | ||
}) | ||
) | ||
class TestFCLSTMSAQFunction(_TestSAQFunction): |
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.
Ditto.
'last_wscale': [1, 1e-3], | ||
}) | ||
) | ||
class TestFCBNSAQFunction(_TestSAQFunction): |
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.
Ditto.
'last_wscale': [1, 1e-3], | ||
}) | ||
) | ||
class TestFCBNLateActionSAQFunction(_TestSAQFunction): |
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.
Ditto.
Thanks. Fixed. |
LGTM |
nose
topytest
_Test*
of tests to filesbasetest_*.py
, becausepytest
cannot ignore classes by their names, but by the filenames.