Developing the remaining of the application

At this point, we are ready to develop our application. Since we already went through creating that exact code in Chapter 2, Deploying Your First Web Application, we are simply going to copy it again or download it directly as follows:

$ curl -L http://bit.ly/2vESNuc > helloworld.js

We can now test the code again using the npm command:

$ npm test
Server running
  main page
      should say hello world
  1 passing (78ms)  

Our test is now passing.

We are almost there. We satisfied one of our first goals, which was to have test coverage for our code. Of course, a real application with more complexity will have many more tests but what we want to focus on at this point is automation.

We validated how to test our code manually; we now want Jenkins to do that for us.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset