testing-zindi-package icon indicating copy to clipboard operation
testing-zindi-package copied to clipboard

Run tests using Tox

Open LeMeteore opened this issue 2 years ago • 0 comments

Let's drop the commands.txt file and use Tox for automating some tasks (for example launching the tests) Here is a small tox.ini file that can be added to the project (right next to setup.py file):

[tox]
envlist = py36

[testenv]
deps = pytest
commands =
    pytest

You can do more than launching tests. You can run any commands you want. Example

You type tox in the root folder and all the tests will be launched. Official docs

LeMeteore avatar May 15 '22 22:05 LeMeteore