Skip to content

Commit

Permalink
docs for setReporterAutoRun
Browse files Browse the repository at this point in the history
  • Loading branch information
leelaprasadv committed Sep 10, 2023
1 parent b5ff3eb commit 6d169ca
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion docs/api/settings/setReporterAutoRun.md
Original file line number Diff line number Diff line change
@@ -1 +1,44 @@
# setReporterAutoRun
---
tags:
- reporter autorun
- reporter
---
# 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);
```

0 comments on commit 6d169ca

Please sign in to comment.