diff options
author | Marek Vavruša <mvavrusa@cloudflare.com> | 2017-11-26 01:23:46 +0100 |
---|---|---|
committer | Petr Špaček <petr.spacek@nic.cz> | 2017-11-28 11:21:11 +0100 |
commit | f41676d299309b775401994079788647d6798e8b (patch) | |
tree | d658a8ffe9744a9a9dd024b6191b2e2184a539eb /.gitignore | |
parent | Merge branch 'docker-updates' into 'master' (diff) | |
download | knot-resolver-f41676d299309b775401994079788647d6798e8b.tar.xz knot-resolver-f41676d299309b775401994079788647d6798e8b.zip |
tests/config: added a TAP-based test environment for modules/configs
I moved the test files to module directories because it allows
vendoring of whole modules including tests etc.
The test environment provides convenience functions and produces
test output in TAP format. Ideally all tests should use a common
format, so that CI can parse it provide better test output on PRs.
It seems like Gitlab CI doesn't support anything yet, but there
are two sort-of standards supported in CI tools - TAP and JUnit.
I chose TAP because it's easier to read for humans, cmocka supports it,
and it should be easier to adapt Deckard. There are also tools to
convert TAP into JUnit XML file.
Also added more tests for global functions and variables, and the
test tool now also tracks coverage (if `luacov` is installed).
Diffstat (limited to '.gitignore')
-rw-r--r-- | .gitignore | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -18,6 +18,8 @@ *.gcno *.gcda *.gcov +*.info +luacov.*.out .dirstamp .libs .deps |