Development and Pipeline

Development and Pipeline

Development and Pipeline

Connecting mainframe application developers to discuss efficiently creating and maintaining z/OS applications

 View Only

Code coverage report for z/OS Debugger 16.0

By Brian Ho posted Wed October 26, 2022 03:36 PM

  
The code coverage report for z/OS Debugger 16 got quite a face lift.  Not only does the user interface looks more modern and sleek, but there are some new features that would help to find information in the reports a little easier.  When you open the code coverage report now, this is what you will see:

Code cover report layout

Summary Section

The new summary section will allow you to quickly see the total coverage for the entire results.  It's color coded to indicate pass, warning or fail with green, yellow and red color respectively. So by scanning the color quickly in this section you can tell if something is wrong with the result.  You can also find the total number of covered lines, uncovered lines and executable lines for the entire result. The tile on the right is very useful as it allows you to quickly see the top 5 flow points that have the highest number of uncovered lines in the entire result.  If you click on anyone of the flow point names, it will take you to that flow point in the source view.  Very handy!

code coverage result summary section

Grouping Data

There are 3 different ways to group data with the context switcher, which is just below the summary section. You can group by file, by modules or by flow points. Grouping by file or modules will let you navigate the result in a hierarchical way, from files down to flow points or from modules to files to flow points respectively. Giving you an overview of the stats at each level.   Grouping by flow points will list out all the flow points in the entire result in one flat list.  So if you already have a flow point that you want to get to, you can group by flow point and then you the text search to quickly find the one you're looking for.

Search for flowpoint


If you're unsure what each of these grouping means, you can hover over the information icon for more clarification on what each context does.

information icon for context switcher

Navigation


Navigating the result is pretty simple, you always start at the top level of the result file. By default the context is set to file, so you see a list of files in the result ordered by the lowest to highest coverage percentage. Click on the name of the file to navigate from file all the way down to the flow points. At any time you can click on the breadcrumb just above the table to go back up the hierarchy. 

navigating the code coverage report



The table will show the coverage percentage, number of uncovered lines, number of covered lines, number of executable lines and any special messages for each file or flow point.  A description of each column can be found if you hover over the information icon.  All the columns are sortable and the table has pagination at the bottom to avoid excessive scrolling.

At the top of the table there is a coverage slider.  This will help you reduce the list so you see only what you need to see.  For example, you can drag the slider to 75 to filter out all the items that have 75% or more coverage.

filtering out items in the code coverage report



The text search will help you find anything by the name of the item within the current context.   You can also use regular expression in the search field to help you have a more accurate search.

Finally when you have found a flow point that you want to look at, click on its name to open the source in the source editor.

opening a source file in code coverage report



For more information, you can take a look at the Working with a code coverage report documentation. That's all for now, stay tune for the next blog in this series which will cover the new Code coverage compare report.

0 comments
72 views

Permalink