{"id":15928788,"url":"https://github.com/srinivasantarget/angular-testing","last_synced_at":"2025-03-24T15:32:23.001Z","repository":{"id":37778736,"uuid":"275570584","full_name":"SrinivasanTarget/angular-testing","owner":"SrinivasanTarget","description":"The repository is to have a collection of common testing scenarios with Angular and to demonstrate different testing layers in Testing Pyramid or Testing Trophy with Angular.","archived":false,"fork":false,"pushed_at":"2023-01-25T23:26:57.000Z","size":1237,"stargazers_count":5,"open_issues_count":16,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-19T03:58:02.178Z","etag":null,"topics":["accessibility","angular","angular-components","angular-testing-library","best-practices","cypress-example","examples","jest","testing","testing-library","testing-tools","testpyramid"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SrinivasanTarget.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-06-28T11:29:33.000Z","updated_at":"2022-06-07T03:05:48.000Z","dependencies_parsed_at":"2023-02-14T12:15:47.712Z","dependency_job_id":null,"html_url":"https://github.com/SrinivasanTarget/angular-testing","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrinivasanTarget%2Fangular-testing","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrinivasanTarget%2Fangular-testing/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrinivasanTarget%2Fangular-testing/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SrinivasanTarget%2Fangular-testing/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SrinivasanTarget","download_url":"https://codeload.github.com/SrinivasanTarget/angular-testing/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245298356,"owners_count":20592593,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["accessibility","angular","angular-components","angular-testing-library","best-practices","cypress-example","examples","jest","testing","testing-library","testing-tools","testpyramid"],"created_at":"2024-10-07T00:00:27.472Z","updated_at":"2025-03-24T15:32:17.992Z","avatar_url":"https://github.com/SrinivasanTarget.png","language":"TypeScript","readme":"# AngularTesting\n\nThe goal of this repository is to have a collection of common testing scenarios with Angular and to demonstrate different testing layers in [Testing Pyramid](https://martinfowler.com/articles/microservice-testing/#conclusion-test-pyramid) or [Testing Trophy](https://kentcdodds.com/blog/unit-vs-integration-vs-e2e-tests) with Angular. I'm happy for every contribution/suggestion 😃.\n\n## Different Layers of Tests\n\n* Unit/Integration Tests - using [Angular Testing Library](https://testing-library.com/docs/angular-testing-library/intro).\n* Accessibility Testing on Angular components - using [Jest-Axe](https://github.com/nickcolley/jest-axe).\n* Consumer Driven Contract Tests - using [Pact](https://docs.pact.io/).\n* End to End Tests - using [Cypress](https://www.cypress.io).\n\n\n## Development server\n\nRun `ng serve` for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Jest](https://jestjs.io).\n\nRun `nx affected:test` to execute the unit tests affected by a change.\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Cypress](https://www.cypress.io).\n\nRun `nx affected:e2e` to execute the end-to-end tests affected by a change.\n\n## Understand your workspace\n\nRun `nx dep-graph` to see a diagram of the dependencies of your projects.","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinivasantarget%2Fangular-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsrinivasantarget%2Fangular-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsrinivasantarget%2Fangular-testing/lists"}