From 0d4b789373f00e16db6df63e38f1893f18220e11 Mon Sep 17 00:00:00 2001 From: Lubomír Sedlář Date: Aug 09 2016 05:48:04 +0000 Subject: Add testing instructions to docs --- diff --git a/docs/source/writing_koji_code.rst b/docs/source/writing_koji_code.rst index 4dbf792..8f02c91 100644 --- a/docs/source/writing_koji_code.rst +++ b/docs/source/writing_koji_code.rst @@ -629,3 +629,23 @@ producing preferable patches. There are only 3-5 people with commit access that regularly watch the mailing list, so responses may take a couple days if we're all occupied. + +Unit Tests +========== + +Koji comes with a small test suite, that you should always run when making +changes to the code. To do so, just enter ``make test`` into your terminal. + +You will need to install following packages to actually run the tests. + + * ``findutils`` + * ``postgresql-python`` + * ``pyOpenSSL`` + * ``python-coverage`` + * ``python-krbV`` + * ``python-mock`` + * ``python-simplejson`` + * ``python-urlgrabber`` + +Please note that it is currently not possible to use *virtualenv* when hacking +on Koji.