Below is the brief summary for Bullseye in linux System including the Setup and view the test report.
üQuick Start on Linux System
Insert the
BullseyeCoverage/bin
directory at the front of yourPATH
environment variable.Set the COVFILE environment variable to the path where you want the coverage file created. For example:
export COVFILE=`pwd`/test.cov # Bourne-compatible shell
setenv COVFILE `pwd`/test.cov # C shell
Enable coverage build. Do this with the command cov01
-1
Rebuild and run your test program as you normally do.
View results by running CoverageBrowser or covhtml.
üSetup
1.Mount the Bullseye license share.
Install and add the License.
2.Add the following values at the end of .bashrc file
export COVFILE=$HOME/CoverageFile.cov
export PATH=/PROJ/LinuxTools/BullseyeCoverage/bin:$PATH
3.Enable coverage build
Format : cov01 -option
option values : 1 enable
0 disable
s show status.
üreport
1.rebuild the peoject.
Note: After enable the bullseye and setup the COVFILE, you must rebuild your project.
2.view .cov file in Coverage
open Coverage in terminal with Command : CoverageBrowser &
BullseyeCoverage shows source code with marks to the left side to indicate coverage events.
An arrow --> indicates incomplete coverage.
An X indicates one of:
a function or lambda expression that was entered
a switch label that was selected
a try-block that finished
an exception handler that was entered
a range-based for statement body that was entered
A T or F indicates a boolean decision that evaluated true or false, respectively.
A t or f indicates a boolean condition within a decision if the condition evaluated true or false, respectively.
A k indicates a constant decision or condition. Since no variation in coverage is possible, this mark is supplementary.
The slash / means this probe is excluded from summary results.
üBullseye testing technology official website
转载于:https://blog.51cto.com/tonkey/1434393