Skip to content

Commit

Permalink
Add details about defining report name as string
Browse files Browse the repository at this point in the history
  • Loading branch information
fadc80 committed Nov 27, 2019
1 parent 43d2ad2 commit af58963
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ sonarqubeReporter: {
encoding: 'utf-8', // test files encoding
outputFolder: 'reports', // report destination
legacyMode: false, // report for Sonarqube < 6.2 (disabled)
reportName: (metadata) => { // report name callback, accepts also a string (reportName: 'report.xml') to generate a single file
reportName: (metadata) => { // report name callback
/**
* Report metadata array:
* - metadata[0] = browser name
Expand All @@ -48,6 +48,14 @@ sonarqubeReporter: {
}
```

If you are using a single browser, `reportName` accepts also.

```typescript
reportName: 'result.xml'
```

Note this way a single file is generated.

**Activate `sonarqube` reporter**

```typescript
Expand Down

0 comments on commit af58963

Please sign in to comment.