Skip to content

how to change the default test discover method for file not starts with test_ #1276

@hackrole

Description

@hackrole

the pytest is really awesome. the test code has been really short and reusable than what I write in unittest2.

I usually and a tests-dir output of my src-dir. and I like to do both functional-test and unittest.
I like to put them together. I usually name the unittest with test__.py, which has no problem with py.test.
and I name the functional-test with fts__.py, which cause problem with py.test.

now I can only ran the fts with py.test fts*.py, which only allow run one fts file at once.
when in unittest2, this not hard for me. But I go through the doc and google, still cannot got a good answer.

Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions