In my last job as a software tester, we had a system, built by CEO long before I even joined the company, to run all the automated tests after each commit. So hundreds of tests been run all the time for several different software versions. A developer would do fixes, updates to the system, I could access the virtual machine through IP, to look at tests, find bugs, but I never went deep into figuring out the creation of such a thing.

But now a few years after I left that company I am considering getting into testing again in a place that has zero automated testing and I believe they would expect me to create proper automation (mostly for websites, not software). This testing after each commit is the thing I have no idea where to begin from. Are there tools that can help with that? Does it need to be programmed from scratch? I truly have no idea how that starts and even works what I saw in my first company.

Is there any source that would explain in depth the whole process of how to automatically run all tests after each commit or at least schedule the tests to be run at certain times day or night?

Or maybe I am overthinking and this is not at all necessary to do?

  • 1
    Have you done any research at all? There are many such systems, from those you host yourself (Jenkins, Concourse) to those provided as a service (Travis, Circle). Most support triggering by commit or scheduler. – jonrsharpe Apr 19 at 7:32
  • 2
    If you are using .Net, Azure DevOps is worth reading up on. – FDM Apr 19 at 7:36
  • 1
    ###Continuous Integration I would suggest to start reading & researching on it as starting point at your own as it is broad topic. When you will research and will have more concrete questions , then post them. – Vishal Aggarwal Apr 19 at 10:18
  • Do you already have nightly builds with associated tests? They're more important, but once you have the infrastructure for those then on-commit builds are a fairly easy extension. I certainly wouldn't maintain two different setups. – MSalters Apr 19 at 16:01

No, you are not over thinking this. Automating the testing and deployment of applications is key in modern software development. It is grouped in the DevOps category. Test automation is a very important part of this.

A typical test run scheduled on changes/commits is called a Continuous Integration or Build Server pipeline. Most build systems are also regular schedulers, they can also be used to run tests on a certain interval.

The flow of a build server pipeline:

  • Monitors changes in a version control system
  • Pulls the changes to a build agent
  • Builds the source code
  • Run the unit-tests
  • Deploys the application to a staging environment
  • Runs the integration tests
  • Runs the end-to-end tests
  • Do a static code analysis (security, test code-coverage)
  • (optionally) Deploys to a production environment. (Called Continuous Delivery/Deployment)

There are a lot of different build automation software products. Some are heavyweight, some are lightweight and do everything locally. See this list for a general idea.

If you are not the sysadmin type I would suggest to use a cloud-based tool, but if you like to play with servers I would certainly try to set up your own pipeline from scratch.

Although I have a preference in certain tools I suggest you do your own research, this article might be a good start: https://stackify.com/top-continuous-integration-tools/

Other reads:

  • I'd add a side-node that for many companies cloud solutions aren't a legal option as code and/or data would leave their direct control. In such cases you need to setup your own tool chain, which isn't much harder these days. – Frank Hopkins Apr 19 at 23:58

The running of test suites in the cloud, triggered by a commit is now a common practice in many organizations.

Every time you push a commit (usually in a branch, but that does include master) the tests are triggered to run.

The wonderful thing about is is that it can be set up in FIVE MINUTES or less.

Basically modern tools have this capability built in. You simply get an API key or a URL from one system and add it to the other system in a place that has been prepared for you.

For example: I've done this in multiple companies and personal projects with circlerCI. Every time I push my commit to github I have a hook that also triggers the test to be run in the cloud.

For circleCI you create a .circleci/config file that has the steps top build the server you need

In github you add the webhook as shown here

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.