Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/reports.md
Original file line number Diff line number Diff line change
Expand Up @@ -212,16 +212,17 @@ Additional configuration should be added to `codecept.conf.js` to print xml repo

```json
"mocha": {
"reporter": "mocha-junit-reporter",
"reporterOptions": {
"mochaFile": "output/result.xml"
}
},
```

Execute CodeceptJS with JUnit reporter:
Execute CodeceptJS:

```sh
codeceptjs run --reporter mocha-junit-reporter
codeceptjs run
```

Result will be located at `output/result.xml` file.
Expand Down Expand Up @@ -315,16 +316,17 @@ Configure it to use `output` directory to print HTML reports:

```json
"mocha": {
"reporter": "mochawesome",
"reporterOptions": {
"reportDir": "output"
}
},
```

Execute CodeceptJS with HTML reporter:
Execute CodeceptJS:

```sh
codeceptjs run --reporter mochawesome
codeceptjs run
```

Result will be located at `output/index.html` file.
Expand Down Expand Up @@ -388,6 +390,7 @@ Configure mocha-multi with reports that you want:

```json
"mocha": {
"reporter": "mocha-multi",
"reporterOptions": {
"codeceptjs-cli-reporter": {
"stdout": "-",
Expand All @@ -414,10 +417,10 @@ Configure mocha-multi with reports that you want:
}
```

Execute CodeceptJS with mocha-multi reporter:
Execute CodeceptJS:

```sh
npx codeceptjs run --reporter mocha-multi
npx codeceptjs run
```

This will give you cli with steps in console and HTML report in `output` directory.
Expand Down
Loading