Skip to content

Commit 04712da

Browse files
authored
Merge pull request #111 from kabalin/use-www-data-behat
Suggest using www-data user for behat runs
2 parents 444f2da + 46cccbe commit 04712da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ bin/moodle-docker-compose exec webserver php admin/tool/behat/cli/init.php
4848
# [..]
4949

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

87+
Notes:
88+
* 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`
89+
8790
## Use containers for manual testing
8891

8992
```bash

0 commit comments

Comments
 (0)