This contributing guide is based on the contributing for ElixirScript (which was based on the guide for contributing to Elixir), with changes suitable for this project.
Contributing can have many faces. It can be code, but also answering questions and issues, writing documentation or trying out preview versions are contributions.
Use the issues tracker for:
A bug is a demonstrable problem that is caused by the code in the repository. Good bug reports are extremely helpful - thank you!
Guidelines for bug reports:
-
Use the GitHub issue search — check if the issue has already been reported.
-
Check if the issue has been fixed — try to reproduce it using the
master
branch in the repository. -
Isolate and report the problem — ideally create a reduced test case. Fill out the provided template.
-
Provide a screenshot or example code — you might in a situation that is very tied to your specific use-case, so provide as much information as possible.
Please try to be as detailed as possible in your report. Please provide steps to reproduce the issue as well as the outcome you were expecting! And fill out the issue template. If you don't provide this information, we have to ask them again from you. All these details will help developers to fix any potential bugs.
We move issues that need help, but may not be of a critical nature or require intensive SpecFlow knowledge, to Up For Grabs. This is a list of easier tasks that anybody who wants to get into SpecFlow development can try. Thank you!
Feature requests are welcome. But please take a moment to find out whether your idea fits with the scope and aims of the project. It's up to you to make a strong case to convince the community of the merits of this feature. Since much of the work is done be volunteers, someone who believes in the idea will have to write the code. Please provide as much detail and context as possible.
If active work is not made on your feature request within 2-3 months, we may close your feature request. Anybody is free to pick up on the idea, and we welcome the work! But in the interest of keeping the issue list down to a maintainable level, we have to do some pruning from time-to-time.
Good pull requests - patches, improvements, new features - are a fantastic help. They should remain focused in scope and avoid containing unrelated commits.
All needed informations about developing SpecFlow can be found in our documentation.
NOTE: Do not send code style changes as pull requests like changing the indentation of some particular code snippet or how a function is called. Those will not be accepted as they pollute the repository history with non functional changes and are often based on personal preferences.
IMPORTANT: By submitting a patch, you agree that your work will be licensed under the license used by the project.
If you have any large pull request in mind (e.g. implementing features, refactoring code, etc), please ask first otherwise you risk spending a lot of time working on something that the project's developers might not want to merge into the project.
Please adhere to the coding conventions in the project (indentation, accurate comments, etc.) and don't forget to add your own tests and documentation. When working with Git, we recommend the following process in order to craft an excellent pull request:
- Fork the project, clone your fork, and configure the remotes:
# Clone your fork of the repo into the current directory
git clone --recurse-submodules https://github.com/<your-username>/SpecFlow
# Navigate to the newly cloned directory
cd SpecFlow
# Assign the original repo to a remote called "upstream"
git remote add upstream https://github.com/SpecFlowOSS/SpecFlow
-
Configure your local setup
Information to do this can be found here -
If you cloned a while ago, get the latest changes from upstream:
git checkout master
git pull upstream master
- Create a new topic branch (off of
master
) to contain your feature, change, or fix.
IMPORTANT: Making changes in master
is discouraged. You should always
keep your local master
in sync with upstream master
and make your
changes in topic branches.
git checkout -b <topic-branch-name>
-
Commit your changes in logical chunks. Keep your commit messages organized, with a short description in the first line and more detailed information on the following lines. Feel free to use Git's interactive rebase feature to tidy up your commits before making them public.
-
Make sure all the tests are still passing.
This is needed to ensure your changes can pass all the tests.
- Push your topic branch up to your fork:
git push origin <topic-branch-name>
-
Open a Pull Request with a clear title and description.
-
If you haven't updated your pull request for a while, you should consider rebasing on master and resolving any conflicts.
IMPORTANT: Never ever merge upstream master
into your branches. You
should always git rebase
on master
to bring your changes up to date when
necessary.
git checkout master
git pull upstream master
git checkout <your-topic-branch>
git rebase master
Thank you for your contributions!