title: AWS CodeBuild identifies build as success in spite of test cases failing
body: <p>I am new to AWS CodeBuild. I am trying to run some cucumber-js test cases  using CodeBuild. After the execution of tests, I get the results of the test cases printed out in the console and logs (CloudWatch).</p>
  
  <p>What I am observing is that irrespective of the test results, the buildStatus always shows as succeeded and in the logs, it says 'Phase complete: BUILD Success: true'. This is not desired since I need the build phase to fail.</p>
  
  <p><strong>Here is part of the log file output:</strong></p>
  
  <p>46 scenarios (4 failed, 42 passed)
  317 steps (4 failed, 4 skipped, 309 passed)
  0m24.718s
  going to kill process
  tests completed</p>
  
  <p>[Container]  Phase complete: BUILD Success: true</p>
  
  <p>As you can see, the build says success: true in spite of the fact that some of the tests failed. </p>
  
  <p>I am not using a buildspec.yml since that is optional. I use a shell script to do the tests like so:</p>
  
  <p>node ./node_modules/.bin/cucumber-js --format-options '{"colorsEnabled":false}'</p>
  
  <p>Any help would be appreciated.. Thanks!</p>