- Fork the notifier on github
- Build and test your changes:
composer install && ./vendor/bin/phpunit
- Commit and push until you are happy with your contribution
- Make a pull request
- Thanks!
To run the unit tests, install the dependencies with Composer:
$ composer install
Then run the Composer "test" script:
$ composer test
These tests are implemented with our notifier testing tool Maze Runner. This requires a recent version of Ruby to run
End to end tests are written in cucumber-style .feature
files, and need Ruby-backed "steps" in order to know what to run. The tests are located in the top level features
directory
Install Maze Runner using Bundler:
$ bundle install
Configure the tests with the following environment variables:
PHP_VERSION
— the PHP version to run the tests with, e.g. "8.0". This must match one of the published PHP Docker image tagsSYMFONY_VERSION
— the version of Symfony to run the tests against, e.g. "5". There must be a matching fixture for the specified version in thefeatures/fixtures
directory
Run Maze Runner with Bundler:
$ PHP_VERSION=8.0 SYMFONY_VERSION=5 bundle exec maze-runner
To enable additional output for debugging, set the DEBUG
environment variable:
$ DEBUG=1 PHP_VERSION=8.0 SYMFONY_VERSION=5 bundle exec maze-runner
- Commit all outstanding changes
- Bump the version in
BugsnagBundle.php
- Update the CHANGELOG.md, and README if appropriate.
- Commit, tag push
git commit -am v1.x.x git tag v1.x.x git push origin master v1.x.x
- Update the setup guide for Symfony on docs.bugsnag.com with any new content