Skip to content

Commit

Permalink
Merge pull request #111 from kabalin/use-www-data-behat
Browse files Browse the repository at this point in the history
Suggest using www-data user for behat runs
  • Loading branch information
stronk7 authored Jan 8, 2020
2 parents 444f2da + 46cccbe commit 04712da
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php
# [..]

# Run behat tests
bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/run.php --tags=@auth_manual
bin/moodle-docker-compose exec -u www-data webserver php admin/tool/behat/cli/run.php --tags=@auth_manual
Running single behat site:
Moodle 3.4dev (Build: 20171006), 33a3ec7c9378e64c6f15c688a3c68a39114aa29d
Php: 7.1.9, pgsql: 9.6.5, OS: Linux 4.9.49-moby x86_64
Expand Down Expand Up @@ -84,6 +84,9 @@ Time: 4.45 seconds, Memory: 38.00MB
OK (2 tests, 7 assertions)
```

Notes:
* If you want to run test with coverage report, use command: `bin/moodle-docker-compose exec webserver phpdbg -qrr vendor/bin/phpunit --coverage-text auth_manual_testcase auth/manual/tests/manual_test.php`

## Use containers for manual testing

```bash
Expand Down

0 comments on commit 04712da

Please sign in to comment.