Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.19 KB

CONTRIBUTING.md

File metadata and controls

37 lines (26 loc) · 1.19 KB

Prerequisites

  1. Go: https://golang.org/dl/
  2. Golint go get -u -v github.com/golang/lint/golint

Contributing

The workflow is pretty standard:

  1. Fork this repository, github.com/rabbitmq/amqp091-go
  2. Add the pre-commit hook: ln -s ../../pre-commit .git/hooks/pre-commit
  3. Create your feature branch (git checkout -b my-new-feature)
  4. Run integration tests (see below)
  5. Implement tests
  6. Implement fixs
  7. Commit your changes (git commit -am 'Add some feature')
  8. Push to a branch (git push -u origin my-new-feature)
  9. Submit a pull request

Running Tests

The test suite assumes that:

Integration Tests

After starting a local RabbitMQ, run integration tests with the following:

env AMQP_URL=amqp://guest:[email protected]:5672/ go test -v -tags integration

All integration tests should use the integrationConnection(...) test helpers defined in integration_test.go to setup the integration environment and logging.