Commit Graph

2 Commits

Author SHA1 Message Date
Khai Do 941d10e091 use jjb tests as the examples
So during my reviews of jjb code I've noticed that many of the examples in
the documentation are either not correct or are out of date.  So instead of
documenting examples in the source I think it would be preferable to
have a test for every module and use that test as the example for the
module.  We run the tests continuously so this will keep the examples
working and up to date.

This patch starts with the scp module.

Change-Id: I161fa22359f8ecb2ae9e511d204c1fa0bce48581
2013-11-19 03:42:35 +00:00
Antoine Musso b829874916 Tests for publishers
I am trying to build up a very basic testing framework so we can tests
our publishers. The idea is to provide a YAML input file and expected
XML output, run the parser on the YAML file and compares its output with
the fixture XML.

That test suite should speed up development of new publishers.

TestCaseModulePublisher is declared inside a function so that unittest
discovery does not consider it a usable test directly. load_test is
responsible for instantiating the test suite.

Change-Id: If3260113eb1337ac47c3883b11c600e5a595dae3
[fabre.arnaud@gmail.com: fixed some runtime errors]
Signed-off-by: Arnaud Fabre <fabre.arnaud@gmail.com>
2013-07-19 14:31:11 +02:00