Skip to content

jayeshdhage07/testApp

Repository files navigation

TestApp

Angular mock data configuration using faker.js and testing with Karma and Jasmine configuration.

This project was generated with Angular CLI version 18.1.2.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via cypress. To use this command, you need to first add a package that implements end-to-end testing capabilities.

Run npm run coverage:report Coverage summary.

Resources used

  1. Faker.js Generate massive amounts of fake (but realistic) data for testing and development.
  2. Cypress Cypress is a powerful tool for end-to-end (E2E) testing in web applications, including those built with Angular.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI Overview and Command Reference page.

About

Angular 18 application configured with mock data generation using Faker.js for realistic test scenarios. The setup includes comprehensive unit testing with Karma and Jasmine for component and service validation, and end-to-end (E2E) testing with Cypress to ensure application flow integrity.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors