concept automate testing in category docker

This is an excerpt from Manning's book Bootstrapping Microservices with Docker, Kubernetes and Terraform.
Running the command npm start is the conventional way to start a Node.js application. This is a special case of an npm script that we can use to start our application. You can see in listing 2.6 that we’ve updated the package.json file to include a start script under the scripts field.
Methods of manual testing are many and varied. I want you to know that manual testing is ok and perfectly valid. You should start with manual testing and continue with it until you are comfortable enough to use automated testing and your product is well enough understood that it’s worth making the investment in automated testing. I can recommend tools for manual testing like Postman or REST Client for Visual Studio Code. These will help you to manually test your REST APIs.
At a point though manual testing becomes very tedious and time consuming and you will want to turn to automated testing. Of course automated testing is generally useful in the realm of software development, but with microservices it becomes especially essential as we grow our application. It’s very important for small teams, because at some point the burden of manual testing becomes overwhelming and there’s no reason you should have a heavy testing burden when great testing tools are within easy reach.
Automated testing coupled with continuous delivery is like an early warning system. When the alarm goes off we can be thankful - it gives us the opportunity to stop problems going into production and potentially impacting our customers.
Automated testing (like automated deployment) is best started early in the project, because trying to bolt automated testing onto a legacy application - one not designed to be tested - can be extremely difficult.
But you often can’t start automated testing too early. When starting a new product you may first need a prototyping phase prior to working on automated testing. Prototyping allows you to experiment with your product before committing to it. If you aren’t sure yet exactly what your product is (e.g. you are still experimenting) or if you are still trying to validate your business model then you might want to hold off on automated testing and stick with manual testing for a bit longer. Building infrastructure for testing represents a significant investment in your product. For the purpose of this chapter let’s imagine that we are ready to make the automated testing commitment for FlixTube.
The true payoff with automated testing is that it will save you countless hours of routine testing, not to mention that it will stop the deployment of broken code that might have otherwise gone into production and caused havoc. But as amazing as automated testing is, it is not a panacea. It is not a replacement for good exploratory testing (e.g. manual testing) by actual humans. That still needs to happen, because it’s the only way to find the bugs that the development team couldn't even imagine.
Automated testing isn’t just about proving that your code works. It also serves as an invaluable communication tool - a kind of executable documentation that shows how the code is used. It also gives you a safe framework in which to refactor and restructure your application. This allows you to continuously move towards a simpler and more elegant architecture.