-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Slow attr #1637
Conversation
@@ -59,9 +59,9 @@ script: | |||
- flake8 --config=.flake8.cython | |||
- autopep8 -r . --global-config .pep8 | tee check_autopep8 | |||
- test ! -s check_autopep8 | |||
- PYTHONWARNINGS='module::DeprecationWarning' nosetests -a '!gpu' --with-doctest tests/install_tests | |||
- PYTHONWARNINGS='module::DeprecationWarning' nosetests -a '!gpu' -a '!slow' --with-doctest tests/install_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.
-a '!gpu' -a '!slow'
means "(not gpu) OR (not slow)".
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.
-a '!gpu,!slow'
@attr.slow | ||
def test_my_slow_func(self): | ||
... | ||
|
||
Once you send a pull request, your code is automatically tested by `Travis-CI <https://travis-ci.org/pfnet/chainer/>`_ **with --attr='!gpu' option**. |
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.
--attr='!gpu,!slow'
LGTM |
I made
slow
decorator to specify slow tests.fix #1514