Skip to content
On this page

Empower Your Test Results with AI-Powered Insights ->

setReporterAutoRun

sets reporter auto run option. Allows to disable reporter run after spec toss.

Defaults to true

Syntax

js
setReporterAutoRun(boolean)

Usage

โœ… Correct Usage

js
settings.setReporterAutoRun(false)

Arguments

> option (boolean)

Reporter auto run toggle.

Examples

Normal

js
const { spec, request } = require('pactum');

settings.setReporterAutoRun(false);

await spec()
  .get('/api/users/1')
  .expectStatus(200);

Released under the MIT License.