[Python-ideas] Easily reference a single unittest from cmdline

Piotr Skamruk piotr.skamruk at gmail.com
Mon Dec 9 10:07:35 CET 2013


2013/12/7 Giampaolo Rodola' <g.rodola at gmail.com>:
> I just took a look at nosetests.
> It provides a similar thing and lets you use a regular expression
> (which indeed makes a lot more sense than using wildcards)
> It works like this:
>
> nosetests test/test_module -m test_name
Check http://pytest.org/latest/usage.html#usage
Probably: pytest -k part_of_test_name
is what You are seeking.

If You have a while - please look deeper on pytest - it's really
powerful/user friendly tool.


More information about the Python-ideas mailing list