vendredi 17 février 2017

pytest: how to explicitly enable a plugin in command line

Let's say I disabled a pytest plugin in my pytest.ini file like:

[pytest]
...
addopts=
    -p no:myplugin

Now I would like to be able to enable it sometimes with command line arguments, something like:

pytest -p yes:myplugin

Is that possible? Please, if you have better recommendations, I would like to know that too.

Aucun commentaire:

Enregistrer un commentaire