We would love to get help from you as "user" and "contributor".
Users
- Tell us how "Aruba" works for you
- Spread the word if you like our work and please tell us if somethings is (utterly) wrong
- Encourage people in testing their code and keep communicating their needs
Contributors
- Send us bug fixes
- Add new features to the code
- Discuss changes
- Add missing documentation
- Improve our test coverage
The rest of this document is a guide for those maintaining Aruba, and others who would like to submit patches.
It would be great if all people who want to contribute to the "aruba" project – contributors and maintiners – follow the guidelines in this section. There are also "Getting started"-sections both for contributors and [maintainers]((#getting-started-as-a-maintainer).
We appreciate that. But before you do, please learn our basic rules:
- This is not a support forum. If you have a question, please go to The Cukes Google Group.
- Do you have an idea for a new feature? Then don't expect it to be implemented unless you or someone else sends a pull request. You might be better to start a discussion on the google group.
- Reporting a bug? Just follow our comments in the issue template
- We love pull requests. The same here: Please consider our comments within the template we provide for your pull request(s).
Contributors
Please...
- Fork the project. Make a branch for your change.
- Make your feature addition or bug fix – if you're unsure if your addition will be accepted, open an issue for discussion first
- Make sure your patch is well covered by tests. We don't accept changes that aren't tested.
- Please do not change the Rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself so we can ignore when we merge your change)
- Make sure your pull request complies to our development style
- Rebase your branch if needed to reduce clutter in our git history
- Make sure you don't break other people's code – On major changes: First deprecated, than bump major version, than make breaking changes
- Split up your changes into reviewable "git"-commits which combine all lines/files relevant for a single change
- Send us a pull request.
Maintainers
- Use pull requests for larger or controversial changes made by yourself or changes you might expected to break the build
- Commit smaller changes directly to master, e.g. fixing typos, adding tests or adding documentation
- Update History.md when a pull request is merged
- Make sure all tests are green before merging a pull request
- We try to follow the recommendations in the Ruby Community Style Guide and use
rubocop
to "enforce" it. Please see .rubocop.yml for exceptions. - There should be
action
-methods andgetter
-methods inaruba
. Only the latter should return values. Please expect the first ones to returnnil
. - Add documentation (aka acceptance tests) for new features using
aruba
's steps and place them some where suitable in here. - Add unit tests where needed to cover edge cases which are not (directly) relevant for users
- Add developer documentation in
yardoc
to all relevant methods added - Format your commits messages following those seven rules -- see this blog post for a well written explanation about the why.
- Separate subject from body with a blank line
- Limit the subject line to 50 characters
- Capitalize the subject line
- Do not end the subject line with a period
- Use the imperative mood in the subject line
- Wrap the body at 72 characters
- Use the body to explain what and why vs. how (optional if subject is self-explanatory)
- Use Markdown Markup to style your message (only if required)
To get started with aruba
, you just need to bootstrap the environment by
running the following command.
# Bootstrap environment
bin/bootstrap
Make sure you bootstrap the environment first. Then run the following command to run the test suite.
# Run the test suite
bin/test
If you have problems because our assumptions about your local setup are wrong.
Try this instead. This requires the docker
-command/project to be installed on
your local system.
# Build the docker container
bundle exec rake docker:build
# Run the whole test suite in "docker"-container
RUN_IN_DOCKER=1 bin/test
# Run only selected scenario
RUN_IN_DOCKER=1 bin/test cucumber features/steps/command/shell.feature:14
A Gemfile.local
-file can be used to have your own gems installed to support
your normal development workflow.
Example:
gem 'pry'
gem 'pry-byebug'
gem 'byebug'
- Bump the version number in
lib/aruba/version.rb
- Make sure
History.md
is updated with the upcoming version number, and has entries for all fixes. - No need to add a
History.md
header at this point - this should be done when a new change is made, later. - If a major version is released, update the
still
-branch which points to "old" major version
Now release it
# update dependencies
bundle update
# Run test suite
bin/test
# Release gem
git commit -m "Version bump"
bin/release
# If it's a major relase:
# Merge changes back to have an correct documentation
git checkout still
git merge master
git push
Now send a PR to https://github.com/cucumber/website adding an article about the with details of the new release and merge it - an aruba maintainer should normally allowed to merge PRs on cucumber/website
. A copy of an old announcement can be used as basis for the new article. After this send an email with the link to the article to cukes@googlegroups.com.
To become a release manager, create a pull request adding your name to the list below, and include your Rubygems email address in the ticket. One of the existing Release managers will then add you.
Current release managers:
- Aslak Hellesøy (@aslakhellesoy)
- Dennis Günnewig (@maxmeyer, @dg-rationdata)
- Jarl Friis (@jarl-dk)
- Matt Wynne (@mattwynne)
To grant release karma, issue the following command:
gem owner aruba --add <NEW OWNER RUBYGEMS EMAIL>