mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
test.c: Fix counting of tests and add 2 new tests
The unit test XML output was counting all registered tests as "run"
even when only a subset were actually requested to be run and
the "failures" attribute was missing.
* The "tests" attribute of the "testsuite" element in the
output XML now reflects only the tests actually requested
to be executed instead of all the tests registered.
* The "failures" attribute was added to the "testsuite"
element.
Also added 2 new unit tests that just pass and fail to be
used for CI testing.
Change-Id: Ia137814b5aeb0e1a44c75034bd3615c26021da69
(cherry picked from commit a0fd95ef52)
This commit is contained in:
committed by
Asterisk Development Team
parent
3a158c07a1
commit
d0ce6d4ee5
11
doc/CHANGES-staging/test.txt
Normal file
11
doc/CHANGES-staging/test.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
Subject: test.c
|
||||
|
||||
The "tests" attribute of the "testsuite" element in the
|
||||
output XML now reflects only the tests actually requested
|
||||
to be executed instead of all the tests registered.
|
||||
|
||||
The "failures" attribute was added to the "testsuite"
|
||||
element.
|
||||
|
||||
Also added two new unit tests that just pass and fail
|
||||
to be used for testing CI itself.
|
||||
Reference in New Issue
Block a user