Read more

Protip: Clone large projects multiple times

Arne Hartherz
July 09, 2015Software engineer at makandra GmbH

Large projects usually have large test suites that can run for a long time.
This can be annoying as running tests blocks you from picking up the next story -- but it doesn't have to be that way!

Illustration web development

Do you need DevOps-experts?

Your development team has a full backlog? No time for infrastructure architecture? Our DevOps team is ready to support you!

  • We build reliable cloud solutions with Infrastructure as code
  • We are experts in security, Linux and databases
  • We support your dev team to perform
Read more Show archive.org snapshot

Simply clone your project's repo twice (or even more often).

When your work on a feature branch is done, simply push that branch and check it out on your 2nd copy to run tests there.
You can pick up a new story and work on that on your "main" project directory.

If you do it right, you will even be able to run tests in both your 2nd copy and your main directory at the same time.

Here is what you'll need to do:

  1. Clone your project a 2nd time, into a new differently named directory. Example: git clone git@example.com:repo repo-copy (if your git server is slow you can also just copy the repository rsync -a repo/ repo-copy)
  2. Update your database.yml to use other test databases. Make sure you create those test databases.
  3. If there are further services (e.g. a Redis store), update your configuration for them, too (e.g. use a different Redis database ID).

Done.

Posted by Arne Hartherz to makandra dev (2015-07-09 10:58)