Skip to content

Commit

Permalink
Merge pull request #7700 from owncloud/cucumber-report-docs
Browse files Browse the repository at this point in the history
[docs] add more information about generating reports for cucumber tests
  • Loading branch information
kiranparajuli589 authored Sep 28, 2022
2 parents 2ea1bca + 4cedb56 commit 5e90498
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions docs/testing/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,25 @@ If you're using a M1 Mac, you need to use `seleniarm/standalone-chromium:4.0.0-b
To watch the tests while running, open [http://host.docker.internal:6080/](http://host.docker.internal:6080/) in the browser to access your VNC client.


#### Watch the test report
### Watch the test report

The cucumber library is used as the test runner for both e2e and acceptance tests. The report generator script lives inside the `tests/e2e/cucumber/report` folder. If you want to create a report after the tests are done, run the command:

```bash
node tests/e2e/cucumber/report --report-input=tests/e2e/cucumber/report/report.json
```

`--report-input` is the path to the report file generated by the test runner. If you want to generate a report for the acceptance tests, you can run the command

```bash
node tests/e2e/cucumber/report --report-input=tests/acceptance/report/report.json
```

If you want to create a report after the tests are done, run the command ```node tests/e2e/cucumber/report```.
By default, the report gets generated to reports/e2e/cucumber/releaseReport/cucumber_report.html.
The location can be changed by adding the ```--report-location``` flag.

To see all available options run ```node tests/e2e/cucumber/report --help```.
To see all available options run

```bash
node tests/e2e/cucumber/report --help
```

0 comments on commit 5e90498

Please sign in to comment.