Development is performed by 2-weeks sprints (We use kind of Scrum framework) We use Git flow for development.
The task is ready to be put into a sprint when all following conditions are met:
- All dependencies are clear and how to work with them are clarified
- Use-case is defined in the task
- Acceptance criteria are defined
The Task could be accepted only when following requirements are met:
- Code is reviewed (and approved) by another developer
- API documentation in Swagger UI corresponds to acceptance criteria
- At least one automated test for every Use-case exists
Any person are free to join us by implementing some parts of code or fixing some bugs and making merge requests for them. The conditions listed in the Definition of Done are required to be fulfilled in any case.
For testing API of XS2A Postman tool can be used. Environment jsons with global parameter’s sets and Collections of jsons for imitation of processes flows are stored in /postman-scripts folder. To import Postman collections and environments follow next steps:
-
Download Postman jsons with collections and environments to your local machine.
-
Open Postman, press button “Import”.
-
Choose “Import file” to import one json or “Import folder” to import all jsons within the folder, then press button “Choose Files” or “Choose Folders” and open necessary files/folders.
-
To change settings of environments - go to “Manage Environments”, press the environment name and change variables.
To start testing with Postman collections it is necessary to have all services running.
If you are using Intellij IDEs, like we do, please consider importing our code-style settings. General settings are also documented in .editorconfig file. You may find more information and a plugin for your editor/IDE here)
- Please use Optionals and corresponding streams instead of null-checks where possible
- We prefer using Mockito over EasyMock for unit-tests.
- We prefer SpringBoot autoconfiguration over manual Configuration where possible
Release is being done using the release scripts ( (C) by Boris Skert ) located under scripts/release-scripts. For detailed info see README for release-scripts.
Release is made from local copy! Ensure that you have enough rights to push to master and develop branches
$ git submodule update --init --remote
$ scripts/release-scripts/release.sh <release-version> <next-develop-version>
Example
$ scripts/release-scripts/release.sh 1.0 1.1