Skip to content

add the ability to skip tests #11

@coyotemarin

Description

@coyotemarin

I'd love it if testify had the ability to report on skipped tests, like unittest: http://docs.python.org/library/unittest.html#skipping-tests-and-expected-failures

The idea behind skipped tests is to tell the user, yeah, those other tests passed, but I couldn't run this test at all because your system doesn't support it.

It's different from expected failures (which indicate that tests are known to be broken and not to worry about it) or disabling tests (which causes the tests to be siliently not run).

I think we could basically make a PEP8 version of the unittest decorators (skip, skip_if, and skip_unless). I'm thinking the reason argument should be optional.

Also, it'd be nice if instead of using a decorator, the test could raise a SkipTest exception (or whatever you want to call it).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions