[Tendrl-devel] improving unit test plumbing

Martin Bukatovic mbukatov at redhat.com
Fri Aug 4 15:50:58 UTC 2017


Hi Filip,

see commits in this node-agent pull request:

https://github.com/Tendrl/node-agent/pull/573/commits

and create pull requests which will address this kind of
problems for the remaining python tendrl repositories
(with exception of tendrl-commons, which is being fixed
in https://github.com/Tendrl/commons/pull/677).

This way, you should be able to run all unit tests from
command line via tox like this (assuming you are in the
root directory of a repository):

  $ tox

And you should be also able to pass additional arguments
to pytest like this:

  $ tox -- tendrl/commons/tests/test_message.py -v

(so that executing particular tests via tox is possible)

Thanks a lot.

-- 
Martin Bukatovic
USM QE team
Red Hat




More information about the Tendrl-devel mailing list