Although Hiptest is a brand new test management platform, our team is in the development and testing business for more than 10 years. We have started our journey with waterfall process, adopted agile in 2006 and moved to devOps a couple of years ago. Now, we deploy continuously new development into production. It means that we deploy between 1 to 10 small increments every day. It enables us to get early feedback from users, do A/B testing, react quickly when we have to deliver a bug fix. But now we have taken on BDD and Continuous Integration.
BDD and Continuous Integration
During our journey, we adopted BDD – Behavior Driven Development:
- Scenarios are requirement specifications that also behave like executable acceptance tests,
- Scenarios are the definition of ‘STOP’ for developers,
- Scenarios are preferably written prior to development and based on a business domain language,
- Scenarios are confirmed with stakeholders and are automated,
- Scenarios should follow the DRY (don’t repeat yourself) principle,
- Scenarios should be reviewed and refactored continuously, just like code.
These good practices make our tests readable and maintainable: a valuable asset. But this is not enough. We also needed a very short feedback loop. And this is the reason why our acceptance tests are automated and integrated in the Continuous Integration process.
So far we have been successful at delivering a working software at the quality level required and at the speed and scale of DevOps. And among the key success factors we would pick: BDD, Refactoring and Continuous Integration.
This is a long journey. There is no shortcut and you can hardly get it right the first time. So like us keep trying, measuring and improving 🙂
The Tools We Use for BDD and Testing
In our team, everyone acts as developer and tester (we always validate our colleagues’ work).
Usually the product owner has already written the acceptance tests with Hiptest before we start the development. The tests are used by the product owner and developpers to discuss the feature. Anyone in the team can contribute to the Hiptest project by adding/editing/refactoring scenarios and action words.
All our tests (Unit, integration and acceptance) are integrated in a continuous deployment process. When a change is pushed to our git code repository, Shippable continuous integration runs all the tests to ensure everything works as expected. If any test fails, the team is notified so we can fix the issue. If all the tests pass, then the new version is deployed in production.
Test cases are not the only way we validate our features. Once the development process is done, another team member will validate the feature with exploratory testing and code review. This step of the process also leads sometimes to the creation of new test cases (non regression tests if a bug is found or unit test if a special case was not tested). BDD and Continuous Integration has brought us to a new level but there is more to learn.