New in IDz 14.1.5, we have replaced the old file and workbench Code Coverage reports with a new web-based report UI. We built the modern user interface using IBMâ€™s Open Source Carbon Design System.
Overview for new and existing UI
Below is an example of the existing Code Coverage Results report view in IDz 14.1.4 and earlier versions compared to the new web-based Code Coverage Reports in IDz 14.1.5.
With the new changes to the reports, we now have a web-based Code Coverage report with a new UI. Now weâ€™ll talk about generating and working with the new reports.
Generating and working with web-based reports
You can select one or more results to generate a web-based Code Coverage report. In the report, Code Coverage data from multiple results is merged and displayed together.
- In the Code Coverage Results view, select one or more results.
- Right-click the selected result(s), and click Open or Open Filtered.
Generating a web-based comparison report
You can select two results to generate a web-based comparison report. In the report, Code Coverage data from the two results are compared.
- In the Code Coverage Results view, select two results.
- Right-click the selected results, and click Compare.
A comparison report is opened in your default internal browser and populated with the Code Coverage data from the results.
In the image below you can see new icons that have been added to help show the difference between the two results.
An empty circle means no change.
A plus circle means a new file has been added between results.
Up/down arrows show an increase/decrease of coverage %.
Working with web-based reports
Some actions you can do in this view:
- Group data by files or modules. To change the grouping method, click the Files or Modules button.
- Open source files by clicking on the file names.
- Expand rows to view the children of the files.
- View file-related messages by clicking on the icons in the Messages column.
- Sort the report by clicking on the column headings.
- Filter results according to coverage percentage by specifying a value in the Show below field and clicking the Refresh button.
- Click export to open a dialog that will allow you to export to either CCZip, SonarQube or PDF.
- In Comparison reports you can click the swap button to swap the direction of comparison.
- You can also click the Help icon to open help information for the web report
In summary here are the new features introduced in the new web reports:
- Improved and modern UI.
- More compact. The old reports had three pages (Files, Threshold and Errors) which have been combined into a single page.
- Threshold page has been replaced with a new toggle. Switch it on and you can filter results with a coverage percent below the â€śShow belowâ€ť value.
- Errors page has been replaced with the Messages column. Click on the blue exclamation mark to view the messages related to the item.
- Sorting. You can now sort columns either in ascending or descending order.
- Export Code Coverage Report. You can now export to CCZip, SonarQube, or PDF straight from the web report UI easily in IDz. To learn more about the PDF exporter see itâ€™s blog post here.
- Compared and Filtered Code Coverage Report. You are able to compare two different Code Coverage reports and filter out unnecessary results using either a filter string or a regular expression.
- Internal/external browser. The Code Coverage report can be viewed inside IDz using the internal browser or you can set IDz to open it in an external browser of your choosing.
- Accessibility. Supports accessibility for users who have complete blindness, color blindness or poor vision.
And this concludes our introduction to the new web reports. We hope you enjoy using it.