3b42e098ef
The Test Anything Protocol (TAP), was originally Perl's simple text-based interface between testing modules and test harnesses, but has since been adopted by a large number of producers and consumers in many different languages, which allows colorizing and summarizing test results. The format is very simple: TAP version 13 ok 1 - test description not ok 2 - test description --- message: 'Failure message' severity: fail expected: 123 actual: 456 ... ok 3 - test description # SKIP 1..3 The specification [1] is very brief, so the implementation has been based on how typical consumers behave, especially when it comes to the undefined diagnostics block. [1] http://testanything.org/tap-version-13-specification.html Change-Id: I616e802ea380165c678510e940ddc6607d39c92d Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
45 lines
1.3 KiB
Plaintext
45 lines
1.3 KiB
Plaintext
TAP version 13
|
|
# tst_Xunit
|
|
ok 1 - initTestCase()
|
|
# just a QWARN() !
|
|
ok 2 - testFunc1()
|
|
# a qDebug() call with comment-ending stuff -->
|
|
not ok 3 - testFunc2()
|
|
---
|
|
type: QCOMPARE
|
|
message: Compared values are not the same
|
|
wanted: 3 (3)
|
|
found: 2 (2)
|
|
expected: 3 (3)
|
|
actual: 2 (2)
|
|
at: tst_Xunit::testFunc2() (qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp:61)
|
|
file: qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp
|
|
line: 61
|
|
...
|
|
ok 4 - testFunc3() # SKIP skipping this function!
|
|
not ok 5 - testFunc4()
|
|
---
|
|
# a forced failure!
|
|
at: tst_Xunit::testFunc4() (qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp:71)
|
|
file: qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp
|
|
line: 71
|
|
...
|
|
not ok 6 - testFunc5() # TODO this failure is expected
|
|
---
|
|
at: tst_Xunit::testFunc5() (qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp:85)
|
|
file: qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp
|
|
line: 85
|
|
...
|
|
not ok 7 - testFunc6() # TODO this failure is also expected
|
|
---
|
|
at: tst_Xunit::testFunc6() (qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp:91)
|
|
file: qtbase/tests/auto/testlib/selftests/xunit/tst_xunit.cpp
|
|
line: 91
|
|
...
|
|
ok 8 - testFunc7() # TODO 'true' returned TRUE unexpectedly. ()
|
|
ok 9 - cleanupTestCase()
|
|
1..9
|
|
# tests 9
|
|
# pass 5
|
|
# fail 3
|