您在此处:
检查代码覆盖结果
在使用“应用程序测试执行”页面运行测试后,您可以在开发人员控制台中查看代码覆盖率详细信息。
在使用“应用程序测试执行”页面运行测试后,您可以在开发人员控制台中查看代码覆盖率详细信息。
| 适用于:Lightning Experience |
适用于:Enterprise、Performance、Unlimited、Developer 和 Database.com Edition |
请参阅检查代码覆盖率
要减少通过在“应用程序测试执行”页面上估计贵组织的代码覆盖率获得的总代码覆盖率结果的计算时间,请单击选项...,选择仅存储聚合代码覆盖率,然后单击确定。只有在您有很多测试和大量 Apex 代码(即当 Apex 测试方法的数量与所有类和触发器的数量相乘可达到成千上万)时使用此选项。此选项可将代码覆盖结果存储在所有测试方法的总计表中。因此,您无法查看单个测试方法的代码覆盖结果,包括显示”开发人员控制台“中的逐行代码覆盖率的蓝色和红色高亮显示。有关运行测试的更多信息,请参阅 Salesforce 帮助:创建测试运行和 Apex 开发人员指南:运行单元测试方法。

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.