Tuesday, January 28, 2020

cheatsheet on getting the Jasmine/Karma tests to run or fail for an Angular 8 app in Azure DevOps

This may already be mentioned on this blog, but here it is again:

  1. create three npm tasks in a pipeline:
    • first comes an install task
    • second comes a custom task that runs the command "run build"
    • third comes a custom task that runs the command "run test"
  2. If you add a new step wrapping a task, click on the step and set the "Dependencies" to have the appropriate dependencies. You will need to also make this change for all steps downstream of the new step.
  3. make sure the tests only run once

No comments:

Post a Comment