Skip to main content
Version: 23.9.0

Coverage.stopJSCoverage() 方法

¥Coverage.stopJSCoverage() method

Promise 解析所有脚本的覆盖率报告数组。

¥Promise that resolves to the array of coverage reports for all scripts.

签名

¥Signature

class Coverage {
stopJSCoverage(): Promise<JSCoverageEntry[]>;
}

Returns:

Promise<JSCoverageEntry[]>

备注

¥Remarks

默认情况下,JavaScript 覆盖范围不包括匿名脚本。但是,会报告带有 sourceURL 的脚本。

¥JavaScript Coverage doesn't include anonymous scripts by default. However, scripts with sourceURLs are reported.