comparison tests/test-run-tests.t @ 32715:a4d0e816a672

run-tests: add information about skipped tests to XUnit output The XUnit spec supports skipped tests.
author Siddharth Agarwal <sid0@fb.com>
date Wed, 07 Jun 2017 15:47:06 -0700
parents ef8d24539612
children 2146f01a2577
comparison
equal deleted inserted replaced
32714:ef8d24539612 32715:a4d0e816a672
674 # Ran 2 tests, 2 skipped, 0 warned, 0 failed. 674 # Ran 2 tests, 2 skipped, 0 warned, 0 failed.
675 $ cat xunit.xml 675 $ cat xunit.xml
676 <?xml version="1.0" encoding="utf-8"?> 676 <?xml version="1.0" encoding="utf-8"?>
677 <testsuite errors="0" failures="0" name="run-tests" skipped="2" tests="2"> 677 <testsuite errors="0" failures="0" name="run-tests" skipped="2" tests="2">
678 <testcase name="test-success.t" time="*"/> (glob) 678 <testcase name="test-success.t" time="*"/> (glob)
679 <testcase name="test-skip.t">
680 <skipped>
681 <![CDATA[missing feature: nail clipper]]> </skipped>
682 </testcase>
679 </testsuite> 683 </testsuite>
680 684
681 Missing skips or blacklisted skips don't count as executed: 685 Missing skips or blacklisted skips don't count as executed:
682 $ echo test-failure.t > blacklist 686 $ echo test-failure.t > blacklist
683 $ rt --blacklist=blacklist --json\ 687 $ rt --blacklist=blacklist --json\