Excluding directory, module in python nosetest

后端 未结 3 1159
走了就别回头了
走了就别回头了 2021-01-17 08:10

We use nose to discover tests and run them. All the tests are written in TestCase compatible way so any test runner can run the. Problem is we have some directo

3条回答
  •  囚心锁ツ
    2021-01-17 09:06

    Perhaps not what the OP asked for, but I found this tidbit from the nose docs useful to exclude a file from consideration:

    If an object defines a __test__ attribute that does not evaluate to True, that object will not be collected, nor will any objects it contains.

提交回复
热议问题