17 Jan
2020
17 Jan
'20
2:19 p.m.
--- README | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README b/README index c90315e..83b406b 100644 --- a/README +++ b/README @@ -141,6 +141,16 @@ warnings we are expecting from the rules. The test suite is in Namcap/tests. The makepkg and pkgbuild_test submodules provide easy generic methods to test a rule. +To run the test suite, run: + +env PARSE_PKGBUILD_PATH="$PWD" \ + PATH="$PWD:$PATH" \ + python setup.py test + +To run a single test, append e.g. +"-s Namcap.tests.package.test_shebangdepends" +to the command-line above. + Here is an example testing the rule "pkgnameindesc" from Namcap.tests.pkgbuild_test import PkgbuildTest -- 2.25.0