Publish TAP Report

Version 2 by Steve Luo
on Mar 06, 2015 15:41.


compared with
Current by Steve Luo
on Mar 06, 2015 15:44.


 
Key
These lines were removed. This word was removed.
These lines were added. This word was added.

View page history


There are 1 changes. View first change.

 TAP, the Test Anything Protocol, is a text-based interface between testing modules in a test harness. See more details in its website below:
  
 https://testanything.org/
  
 Since QuickBuild 6.0.9, TAP report can be published as other test reports. To publish TAP report, you need generate TAP reports first. Below is a TAP test stream copied from TAP website:
  
 {code}
  1..4
  ok 1 - Input file opened
  not ok 2 - First line of the input valid
  ok 3 - Read the rest of the file
  not ok 4 - Summarized correctly # TODO Not written yet
 {code}
  
 If the TAP is published successfully, QuickBuild can show you tests information like below:
  
  !bytest.png!
  !by-test.png!
  
 QuickBuild will use your TAP file name as test set name automatically and then calculate the total tests, failed, passed for you, below image as an example:
  
 !by-testset.png!
  
 TAP report by default has no duration information, but some test tool will add duration information in the diagnostic data like below:
  
 {code}
  not ok 2 - First line of the input valid
  ---
  duration_ms: 123.456
  message: "Board layout"
  severity: comment
  ...
 {code}
  
 If you need duration information, you need add *duration_ms* in your diagnostic data.