Skip to content

Latest commit

 

History

History
21 lines (19 loc) · 976 Bytes

angular_integration_tests.md

File metadata and controls

21 lines (19 loc) · 976 Bytes

Angular integration testing

e2e

ng e2e

cypress

  • npm install --save-dev cypress fuer das jeweilige Angular Projekt
  • projekt servern mit ng serve
  • in andererm Terminalnpx cypress open um den cypress client zu starten.
  • cypress ersetzt angulars protractor und gibts open source oder kommerziell
  • unabhängig von angular, geht mit jeder browseranwendung

cypress.json

{"$schema": "https://on.cypress.io/cypress.schema.json",
  "baseUrl": "http://localhost:4200"
}

cypress tests

füge als erste Zeile dies hinzu /// <reference types="Cypress" /> (This is to get type definition support from VSCode’s IntelliSense for auto-completion and method signatures of Cypress.)