title: How to run ng test before ng build --prod and fail jenkins job when ng test fails?
body: <p>Earlier I used systemJS version of angular-cli and whenever I used to kick a build from jenkins, the build used to fail if there were any test case failure.</p>
  
  <p>I just had <code>ng build --prod</code> command to build my project.</p>
  
  <p>Now with webpack version of angular-cli, we have to explicitly run <code>ng test</code>. </p>
  
  <p>How can I check in jenkins whether <code>ng test</code>  have succeeded and continue with <code>ng build --prod</code> or else fail the build? </p>