tests/test-run-tests.t
changeset 32704 1270b00a385d
parent 32622 931bb962e0eb
child 32714 ef8d24539612
equal deleted inserted replaced
32703:9d1d3199382e 32704:1270b00a385d
   222 
   222 
   223   $ cat .testtimes
   223   $ cat .testtimes
   224   test-failure-unicode.t * (glob)
   224   test-failure-unicode.t * (glob)
   225   test-failure.t * (glob)
   225   test-failure.t * (glob)
   226   test-success.t * (glob)
   226   test-success.t * (glob)
       
   227 
       
   228   $ rt --list-tests
       
   229   test-failure-unicode.t
       
   230   test-failure.t
       
   231   test-success.t
       
   232 
       
   233   $ rt --list-tests --json
       
   234   test-failure-unicode.t
       
   235   test-failure.t
       
   236   test-success.t
       
   237   $ cat report.json
       
   238   testreport ={
       
   239       "test-failure-unicode.t": {
       
   240           "result": "success"
       
   241       },
       
   242       "test-failure.t": {
       
   243           "result": "success"
       
   244       },
       
   245       "test-success.t": {
       
   246           "result": "success"
       
   247       }
       
   248   } (no-eol)
       
   249 
       
   250   $ rt --list-tests --xunit=xunit.xml
       
   251   test-failure-unicode.t
       
   252   test-failure.t
       
   253   test-success.t
       
   254   $ cat xunit.xml
       
   255   <?xml version="1.0" encoding="utf-8"?>
       
   256   <testsuite errors="0" failures="0" name="run-tests" skipped="0" tests="0">
       
   257     <testcase name="test-failure-unicode.t"/>
       
   258     <testcase name="test-failure.t"/>
       
   259     <testcase name="test-success.t"/>
       
   260   </testsuite>
       
   261 
       
   262   $ rt --list-tests test-failure* --json --xunit=xunit.xml
       
   263   test-failure-unicode.t
       
   264   test-failure.t
       
   265   $ cat report.json
       
   266   testreport ={
       
   267       "test-failure-unicode.t": {
       
   268           "result": "success"
       
   269       },
       
   270       "test-failure.t": {
       
   271           "result": "success"
       
   272       }
       
   273   } (no-eol)
       
   274   $ cat xunit.xml
       
   275   <?xml version="1.0" encoding="utf-8"?>
       
   276   <testsuite errors="0" failures="0" name="run-tests" skipped="0" tests="0">
       
   277     <testcase name="test-failure-unicode.t"/>
       
   278     <testcase name="test-failure.t"/>
       
   279   </testsuite>
       
   280 
   227   $ rm test-failure-unicode.t
   281   $ rm test-failure-unicode.t
   228 
   282 
   229 test for --retest
   283 test for --retest
   230 ====================
   284 ====================
   231 
   285