1
|
Views Tests
|
2
|
```````````
|
3
|
All of the tests may be executed with the following command:
|
4
|
|
5
|
$ scripts/run-tests.sh --color --url http://example.com/ --php `which php` --concurrency 4 --verbose --directory 'sites/all/modules/contrib/views/tests' 2> /dev/null
|
6
|
|
7
|
Explanation:
|
8
|
--color
|
9
|
Colorizes the output. Optional.
|
10
|
--url http://example.com/
|
11
|
The name of the Drupal 7 hostname used locally for running tests, e.g.
|
12
|
"http://drupal7.dev". Required.
|
13
|
--php `which php`
|
14
|
Tells the test runner the path to the PHP binary. Only necessary if the test
|
15
|
runner is unable to find the path automatically or to use an alternative
|
16
|
PHP binary. Optional.
|
17
|
--cuncurrency 4
|
18
|
Run multiple test processes simultaneously. Four appears to be a good
|
19
|
balance between melting the computer and improving performance. Optional.
|
20
|
--verbose
|
21
|
Display results for all of the assertion statements after the summary
|
22
|
details. Optional.
|
23
|
--directory 'sites/all/modules/contrib/views/tests'
|
24
|
Run all of the commands in the following directory. The path is relative to
|
25
|
the Drupal installation's root directory. This will run all of Views' tests
|
26
|
in one go, rather than either repeating the names of test groups or running
|
27
|
multiple commands. Optional.
|
28
|
2> /dev/null
|
29
|
Outputs all error messages to /dev/null, i.e. hides them. Optional.
|