Skip to content

Commit

Permalink
adding readme
Browse files Browse the repository at this point in the history
  • Loading branch information
lurbini committed Sep 23, 2024
1 parent 1e59850 commit de96706
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ The reporter supports the following configuration options:
| `enableEmoji` | Show an emoji based on the test status | `boolean` | `false` | `false` |
| `quiet` | Do not show any output in the console | `boolean` | `false` | `false` |
| `debug` | Show debug information | `boolean` | `false` | `false` |
| `shouldRun` | A function that determine whether the reporter has to run or not | `boolean` | `false` | `true` |
| `shouldRun` | Conditional reporting | ` Suite => boolean` | `false` | `true` |

### Mention users

Expand Down Expand Up @@ -134,6 +134,17 @@ The format can be either the full name and email (`"Full name <email>"`) or just

With the `linkToResultsUrl` option, you can provide a link to the test results. For example, you can view the test results on your CI/CD platform.

### Conditional reporting (shouldRun)

Example (report only from jenkins runs - project name set as 'dev__jenkins'):
```javascript
shouldRun: (suite) => {
if (suite.suites[0].project()?.name.includes('_jenkins')) return true

return false
}
```
#### Github
```javascript
Expand Down

0 comments on commit de96706

Please sign in to comment.