pip install test dependencies for tox from setup.py

前端 未结 4 965
你的背包
你的背包 2020-12-16 09:57

I made my project with setuptools and I want to test it with tox. I listed dependencies in a variable and added to setup() parameter (

4条回答
  •  天涯浪人
    2020-12-16 10:39

    If you use the following command, Tox will install your test_requires before running the tests:

    commands = {envpython} setup.py test
    

    You'll also need to add to setup.py where are the tests with this:

    test_suite="tests_module"
    

    Finally, here's an answer for a similar question with a nice example.

提交回复
热议问题