Skip to content

Sample project to learn Unit and E2E tests in Angular

Notifications You must be signed in to change notification settings

szinta/angular-tests

Repository files navigation

angular-tests

This project was generated with Angular CLI version 7.3.8. This project contains some sample unit tests.

Build Commands

Run ng serve --open for a dev server.

Run ng build to build the project.

Running unit tests

Run ng test to execute the unit tests via Karma.

Run ng test --code-coverage to get code coverage. This will excecute unit tests and create a coverage directory in project root folder. Open coverage/index.html file to see code coverage details.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Notes

Use 'x' infront of describe and it keywords to ignore test cases, like xdescribe or xit

About

Sample project to learn Unit and E2E tests in Angular

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published