Skip to content
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

Merged
merged 5 commits into from
Sep 13, 2016
Merged

Slow attr #1637

merged 5 commits into from
Sep 13, 2016

Conversation

unnonouno
Copy link
Member

I made slow decorator to specify slow tests.
fix #1514

@unnonouno unnonouno added the cat:test Test or CI related. label Sep 10, 2016
@@ -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
Copy link
Member

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)".

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-a '!gpu,!slow'

@gwtnb gwtnb self-assigned this Sep 10, 2016
@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**.
Copy link
Member

@gwtnb gwtnb Sep 11, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--attr='!gpu,!slow'

@gwtnb
Copy link
Member

gwtnb commented Sep 12, 2016

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat:test Test or CI related.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to mark unit tests as slow
2 participants