1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/CONTRIBUTING.md

54 lines
2.1 KiB
Markdown
Raw Normal View History

2012-11-07 00:41:09 +01:00
## Questions about Capybara?
2012-09-21 16:52:41 +02:00
2012-11-07 00:41:09 +01:00
To get your questions answered, please ask on the [mailing list]. Do not open
an issue.
2012-09-21 16:52:41 +02:00
2012-11-07 00:41:09 +01:00
## Bug Reports
2012-09-21 16:52:41 +02:00
2012-11-07 00:41:09 +01:00
If you are at all unsure whether it's a bug in Capybara or a problem with your
code, post on the [mailing list] instead. If it turns out that it is a bug, we
can always open an issue later.
2012-09-21 16:52:41 +02:00
2012-11-07 00:41:09 +01:00
If you are sure that it's a bug in Capybara, open a new [issue] and try to
answer the following questions:
- What did you do?
- What did you expect to happen?
- What happened instead?
2012-11-07 00:41:09 +01:00
Please also post code to replicate the bug. Ideally a failing test would be
2013-06-28 13:08:25 +02:00
perfect, but even a simple script demonstrating the error would suffice. You
could use [this template](https://gist.github.com/jnicklas/5137053) as a
starting point. Please don't send us an entire application, unless the bug is
in the *interaction* between Capybara and a particular framework.
2012-09-21 16:52:41 +02:00
Make sure to specify which version of Capybara you are using.
2012-09-21 16:52:41 +02:00
Feature requests are great, but they usually end up lying around the issue
tracker indefinitely. Sending a pull request is a much better way of getting a
2012-11-07 00:41:09 +01:00
particular feature into Capybara.
2012-09-21 16:52:41 +02:00
2012-11-07 00:41:09 +01:00
## Pull Requests
2012-09-21 16:52:41 +02:00
2022-10-18 23:36:26 +00:00
- **Add tests!** Your patch won't be accepted if it doesn't have tests.
To run a single test or scenario in development use `:focus_` metadada, e.g.:
`it 'should simulate multiple held down modifier keys', :focus_ do`
2012-09-21 16:52:41 +02:00
- **Document any change in behaviour**. Make sure the README and any other
2012-09-21 16:52:41 +02:00
relevant documentation are kept up-to-date.
- **Consider our release cycle**. We try to follow semver. Randomly breaking
2012-09-21 16:52:41 +02:00
public APIs is not an option.
- **Create topic branches**. Don't ask us to pull from your master branch.
2012-09-21 16:52:41 +02:00
- **One pull request per feature**. If you want to do more than one thing, send
2012-09-21 16:52:41 +02:00
multiple pull requests.
- **Send coherent history**. Make sure each individual commit in your pull
2012-09-21 16:52:41 +02:00
request is meaningful. If you had to make multiple intermediate commits while
developing, please squash them before sending them to us.
2012-11-07 00:41:09 +01:00
[mailing list]: http://groups.google.com/group/ruby-capybara
2016-11-15 09:14:43 -08:00
[issue]: https://github.com/teamcapybara/capybara/issues