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

Prepare for cross-framework test suite #6920

Merged

Commits on Aug 14, 2016

  1. Prepare for cross-framework test suite

      - introduced `xfail(reason)` function
        - uses: `raise KnownFailureTest(msg)` -> `xfail(reason)`
        - same name and signature as in pytest
    
      - introduced `skip(reason)` function
        - uses: `raise SkipTest(msg)` -> `skip(reason)`
        - same name and signature as in pytest
    
      - introduced `skipif(condition, reason=None)` decorator
        - uses: replaces `def func(): if condition: skip()`
        - same name and signature as in pytest
        - can be used with functions, classes, and methods
        - supports string condition (evaluated at runtime)
    
      - moved nose related code to `testing.nose` submodule
        - plugins in `testing.nose.plugins` submodule
        - decorators implementation in `testing.nose.decorators`
          (interface is still in `testing.decorators`, implementation will
           have been chosen at runtime according to used test framework)
    
      - `matplotlib.test` function unifications
      - `tests.py` now uses `matplotlib.test()`
    Kojoley committed Aug 14, 2016
    Copy the full SHA
    f20efb9 View commit details
    Browse the repository at this point in the history