Let's see an example of how to write a simple report script that prints the line coverage percentage for a specific function within a program. The script syntax is.
让我们看一下怎样书写一个简单的报表脚本,该脚本在一个项目中为一个特定的函数记下行覆盖率百分比。
2
Most of the code in the makePieSeries function is for creating a label that will show the name of the browser, how many hits, and the percentage of total hits.
Use the Create menu to create Processing, which allows you to choose the Get Random Sample function to set a percentage of the data you want to analyze.
使用 Create 菜单创建 Processing,它允许您选择 Get Random Sample 功能设置您想分析的数据的百分比。