开发者

Common convention for invoking unit tests across a python project?

开发者 https://www.devze.com 2023-01-08 22:42 出处:网络
Is there a standard convention, or even a growing one, around where and how to invoke the tests associated with a project? In many projects, I\'m seeing it bundled into a Make, a separate test.py scri

Is there a standard convention, or even a growing one, around where and how to invoke the tests associated with a project? In many projects, I'm seeing it bundled into a Make, a separate test.py script at the top level of开发者_StackOverflow中文版 the project, etc to do the work. 

I looked around for some common thing with setup.py, but didn't spot anything there (granted, I didn't look hard). What's common and best practice?


The short answer is yes, there's a simple convention built-in to the unittest module. See this previous question.

0

精彩评论

暂无评论...
验证码 换一张
取 消