Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add composer scripts #259

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.idea/
/build/
/composer.lock
/vendor/
/composer.lock

8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,15 +118,15 @@ $ composer install
To run the test suite, go to the project root and run:

```bash
$ vendor/bin/phpunit
$ composer test
```

The test suite is set up to always ensure 100% code coverage across all
supported environments. If you have the Xdebug extension installed, you can also
generate a code coverage report locally like this:

```bash
$ XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text
$ composer test:coverage
```

Additionally, you can run our sophisticated integration tests to verify the
Expand All @@ -135,8 +135,8 @@ of choice (see deployment documentation) and execute the tests with the URL to
your installation like this:

```bash
$ php tests/integration/public/index.php
$ tests/integration.bash http://localhost:8080/
$ composer integration:serve
$ composer test:integration
```

## License
Expand Down
7 changes: 7 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@
"files": [
"tests/FiberStub.php"
]
},
"scripts": {
"test": "phpunit",
"test:coverage": "XDEBUG_MODE=coverage vendor/bin/phpunit --coverage-text",
"test:integration": "tests/integration.bash http://localhost:8080/",
"stan": "phpstan",
"integration:serve": "php tests/integration/public/index.php"
}
}