testing individual autopkgtest tests

Martin Pitt mpitt at debian.org
Thu Jan 19 07:30:17 UTC 2017


Hello Paul,

Paul Gevers [2017-01-18 21:15 +0100]:
> the failing test. Does anybody know of the top of his/her head how to
> run an individual test? I'll continue searching in the python docs, but
> I haven't found something that works.
> 
> Something like:
> $ python3 -m unittest autopkgtest.NullRunner.test_timeout

Sure!

  test/autopkgtest NullRunner.test_foo

This is the standard invocation of unittest.main(), you can also use --help to
get some other useful options.

Martin

-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/autopkgtest-devel/attachments/20170119/c3d1caa4/attachment.sig>


More information about the autopkgtest-devel mailing list