Skip to main content

isInBenchmark

isInBenchmark: boolean = false

Specifies whether the TestManager works in benchmark on unit test mode. This is controlled by the TestManager's "Benchmark" check box.

Use this variable in the individual tests to control whether it runs as a quick unit test (for instance, set small number of iterations) or a benchmark (set big number of iterations).

Results of the benchmarks, including time, are captured during the overnight automated testing and are reported to the metrics database. This allows to identify performance regressions, compare how fast tests perform under different conditions, etc.

Source

src/utils.ts:727