Commit Graph

4 Commits

Author SHA1 Message Date
Lukas Bednar 1cf55db557 publishers: xunit doesn't accepts integers as threshold
* Accept integers for threshold
 In documentation is written that threshold should be integer.
 But it fails with integer to generate XML.
 Only case when it pass is for 0, because XML formatter consider it as
 empty body and do not format it.

* Fix documentation for missing threshold field, plus test.
 In documentation it says that missing threshold is set to 0, but apparently
 it is set to Null (empty field), and it has different behaviour than for 0
 value.

Change-Id: I326cbadd955c4c28f315fa72293d9a54a116b140
2015-11-12 14:51:58 +01:00
Lucas Dutra Nunes 81781a4aa8 xUnit publisher: add option to skip if there are no tests files
This is valid for each defined xUnit type publisher on the job. Default
is false.

Change-Id: Idff3c8ba6a4e4291ec483b2eb4a999dcbeea7291
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2015-02-19 00:28:31 +00:00
Lucas Dutra Nunes dd41c44dbb xUnit publisher: add test-time-margin extra config option
From the plugin advanced configuration:

    "Give the report time margin value (default to 3000) in ms, before
     to fail if not new (unless the option 'Fail the build if test
     results were not updated this run' is checked)."

The configuration defaults to 3000 if no value is passed.

Change-Id: I372d9cc100ecd824516bac864daac0af41e367f5
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2015-02-03 10:23:33 -02:00
Lucas Dutra Nunes 7fb2a64e05 xUnit publisher: add support to CTest
Adds support for parsing the output of the CMake test driver program on
the xUnit plugin, which was present since version 1.58.

Another fixture file was added to keep the data extraction based of the
current tests fixtures working.

Change-Id: I9be73b39c9034955f6224695cbd642f03deac2cf
Signed-off-by: Lucas Dutra Nunes <ldnunes@ossystems.com.br>
2015-02-03 10:23:33 -02:00