15 plus best practices for continuous integration of your software

Here is a list of 15 plus continuous integration tips or do’s and don’ts for your software. If you have more tips, please add them to the comment section. I will pick it up from there and add it to this list.

  1. Maintain single source code repository
  2. Commit code frequently. Ideally have everyone in your team commit their code everyday.
  3. Run all test cases / test suites locally before committing your code to the repository.
  4. Never check-in a broken build – if you found broken test cases, fix those before committing the code.
  5. If you checked in a code that broke the build, fix it. Take responsibility on the build that you broke.
  6. Don’t comment out failing test cases – fix them.
  7. Automate the build process using tools like Ant or Maven.
  8. Automate the unit tests so that on every build whole set of test cases run.
  9. Make a clear separation of Unit Tests and Integratio Tests
  10. Configure the build so that every commit to the repository triggers a build.
  11. Keep the builds fast – fail the build if it runs for too long and optimize the build process.
  12. Replicate production environment as closely as possible on your test environments.
  13. Make the results of your test cases visible to everyone in your team.
  14. Send an email to the team for every build – both for success and failure.
  15. Auotmate your deployment process – ideally set up a trigger to run a deployment once the build is complete.
  16. Run static code analysis tools like checkstyle on your every build and fail the build in case of violations.


Iterative development benefits in the Agile software development

Iterative Development in Agile Methodologies

Iterative Development in Agile Methodologies

As we know, the waterfall model of software engineering is getting obsolete day by day as more and more companies are choosing to go for the agile model of software development where they have seen lots of solid benefits by trying the agile and experimenting with variations of it to fit their own need. Agile is not rigid set of rules, although there are guiding principles.

So what are the benefits of using the iterative development also called sprints in Agile? Here are a few that I can think of.

  1. Iterative development in agile has a continuous focus on improving the processes.
  2. Iterative development pays attention to the quality of work, learning from what went bad and what things went good in prior iterations.
  3. Iterative development can help align or modify the priorities based on the outcome of the previous iteration deliveries.
  4. Business priorities and the business values can change all the time. Iterative development helps to adjust those values and priorities.
  5. With iterative development, the estimates get better as we grow. This estimate will be close to reality than the waterfall model of development where the estimations are done at the beginning of the project, which might not hold true as the project progresses.
  6. In the iterative development, there is opportunity to build the highest risk items first.
  7. Iterative development allows the testing to occur early and often.
  8. Iterative development allows to deliver the product early and deliver often.
  9. Risk discover, risk analysis and risk mitigation can occur earlier.
  10. Allows us to change the software even in the late cycle of development.
  11.  Because of the splitting of the task, the complexity in the iterations are manageable.
  12.  Iterative development helps produce early parrtial product which in turn can obtain early feedback and changes.
  13. With the continuous delivery and continous feedback, the final product becomes more closer to what user needs.
  14. Iterative development enforces better communication and engagement.
  15. Time boxed iterations give an idea of when to expect the delivery.