- Fork the notifier on github
- Build and test your changes
- Commit and push until you are happy with your contribution
- Make a pull request
- Thanks!
Install karma-cli
npm install -g karma-cli
Install the dependencies for the project:
npm install
We have some basic lint rules set up to catch style issues. Run with:
npm run lint
npm run test:quick
Any large changes should be tested in old IEs (we support IE 6!), and any other browsers you can get your hands on.
While it's possible to use npm and karma to run the tests in various browsers
from the command line, the easiest way is typically to open the
bugsnag-js/test/index.html
file directly from your local file system:
Note that in certain browsers (e.g. Chrome) some tests that fetch local files or iframes may fail for security reasons when run directly from the file system.
To do automated browser testing with sauce labs first install sauce-connect
brew cask install sauce-connect
Then ensure that you have SAUCE_USERNAME
and SAUCE_ACCESS_KEY
environment
variables set.
Finally run:
karma start --single-run
This will run automated tests with all browsers in the browsers.json
file.
To run a subset of browsers, select the ones you want and add them to the
--browsers
flag of the karma command.
karma start --single-run --browsers sl_ie_6, sl_ie_7
If you don't have sauce labs you can do some basic IE testing by using modern.ie.
-
Ensure you have the
AWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
environment variables set. -
Bump the version number
grunt bump::{major,minor,patch,build}
-
Update the CHANGELOG, and README if necessary
-
Commit, tag, build, upload to S3, invalidate cloudfront, push to github:
grunt release
-
Create a release on github
- Update the release on GitHub to include the release notes and check the "pre-release" checkbox
- Draft the integration guide changes for docs.bugsnag.com
- Update and test bugsnag.com with the new version
- Wait for cloudfront to invalidate the symlink
- Test that exception reporting still works on Bugsnag
- Release the new integration guides for JavaScript on docs.bugsnag.com, and
find and update all references to
bugsnag-[major version].js