X-Git-Url: https://gerrit.fd.io/r/gitweb?p=csit.git;a=blobdiff_plain;f=tox.ini;h=fd0a6cf8cdc3332959848ae26328487fe17bc069;hp=6413c953078eb2ccc39a844158b48321e9c25345;hb=ff8f6326efe2fccf5117bb1062f95fb07d2c26c9;hpb=6f082130e508e151bb8e92ce459a10b05b3c82b8 diff --git a/tox.ini b/tox.ini index 6413c95307..fd0a6cf8cd 100644 --- a/tox.ini +++ b/tox.ini @@ -25,7 +25,7 @@ # will execute only checks defined in "pylint" tox environment. [tox] -envlist = new_line_length, line_length, autogen, pylint +envlist = new_line_length, line_length, autogen, pylint, tc_naming, tc_coverage # The following is needed as tox requires setup.py by default. skipsdist = true # Just a shorthand to avoid long lines. @@ -61,13 +61,23 @@ whitelist_externals = /bin/bash setenv = PYTHONPATH = {toxinidir} commands = bash {[tox]checker_dir}/autogen.sh +[testenv:tc_naming] +whitelist_externals = /bin/bash +# Fix all TC namings and remove the " || true" workaround. +commands = bash -c "bash {[tox]checker_dir}/tc_naming.sh || true" + +[testenv:tc_coverage] +whitelist_externals = /bin/bash +# Coverage is not needed to be voting. +commands = bash -c "bash {[tox]checker_dir}/tc_coverage.sh || true" + # TODO: Migrate current docs check here. -# TODO: Create license checker. # TODO: Create voting "pylint violations should not increase" checker. -# TODO: Create voting "linelength violations should not increase" checker. +# TODO: Create voting checker to reject suites with Force Tags of other suite. +# TODO: Create voting checker against tags not in tag_documentation.rst file. # TODO: Create Robot suite Documentation checker (backslash if not next mark). # TODO: Create .yaml specific checker, so people can override long line check. # TODO: Create .rst specific checker, if there is one allowing # to override line check. # TODO: You get the idea, replace line check with something smarter -# wherever possible. \ No newline at end of file +# wherever possible.