-
Notifications
You must be signed in to change notification settings - Fork 4
Development setup and process flow
-
Clone the repository
-
Install IDE of your choice
Note that project is configured for use with IntelliJ IDEA and this IDE is used as an example in the rest of this page.
-
Import project
- Select "Maven" project type
- In the next window, check following boxes:
- Search for projects recursively
- Import Maven projects automatically
- Create module groups for multi-module Maven projects
- Make sure modules to be imported are checked
- Select "1.8" SDK version
- Wait for project and modules to be imported by IDE - it may take a while
-
Setup formatter
-
Formatter settings file:
resources/style_format/eclipse_format_code_standards.xml
- file is in Eclipse formatFor IntelliJ, "Eclipse Code Formatter" plugin must be used
-
Choose "Allure_Test_Framework_Format" as formatter profile
-
Optionally, formatting can be set to be performed automatically on file save ("Save Actions" option in Eclipse, in IntelliJ there is a plugin named "Save Actions")
-
- Create/assign to issue on board and move it to "In Progress column"
- Create branch in repository using "branch: " button
- branch name should start with
feature/
orbugfix/
prefix - please do not create branches without a prefix - branch name should contain issue number for easier tracking and some short description (e.g.
feature/issue-123-my-feature
) - branch should be created based on
develop
branch
- branch name should start with
- Checkout branch on your local machine
- using
git
tool:-
git fetch
and thengit checkout <branch_name>
OR -
git pull
and thengit checkout <branch_name>
-
- using IntelliJ:
-
Navigate to
VCS -> Git -> Fetch
(orPull
) -
Navigate to
VCS -> Git -> Branches
and select your branch from remotes toCheckout as
You may also use branch menu at the bottom of screen
-
- using
- Make your changes
- Before commit, make sure that you formatted all files you changed (see "Environment setup" section above for formatter configuration details) and that unit tests are passing locally
- You can run tests using
mvn test
command
- You can run tests using
- Commit your changes providing short and descriptive commit message (be sure to add all files you want to commit first)
- Using git command line tool:
git commit -m "<commit_message_here>"
- Using IntelliJ: Navigate to
VCS -> Commit
- Using git command line tool:
- Push changes to remote repository
- Using git command line tool:
git push
(you may need to setup upstream branch, follow instructions displayed in console) - Using IntelliJ: Navigate to
VCS -> Git -> Push
(you may also selectCommit and Push
option in commit window)
- Using git command line tool:
- To check if your code works, run Jenkins job providing your branch as
WORKING_BRANCH
parameter - build should pass and be marked as green - If all changes are done and build is passing, you may open pull request
- Click "New pull request" button
- Select your branch
- Review the changes to be introduced
- Add link to passing Jenkins job in the PR's comment
- Add reviewers: tompalka, pawel-szczesny, przwojtkow should be included in reviewers list
- Update your issue on board: move it to "Review/QA" column
- Wait for reviewers to provide comments and approve your changes
- When you PR is approved and merge to
develop
branch, update issue on board: move it to "Closed" column