Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ruslanguns/angulartesting
Angular Testing Project with Samples of all levels and good practices ππΌ
https://github.com/ruslanguns/angulartesting
angular jest testing typescript
Last synced: 7 days ago
JSON representation
Angular Testing Project with Samples of all levels and good practices ππΌ
- Host: GitHub
- URL: https://github.com/ruslanguns/angulartesting
- Owner: ruslanguns
- License: mit
- Created: 2020-12-27T15:37:10.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-11-01T01:56:52.000Z (16 days ago)
- Last Synced: 2024-11-01T02:31:31.517Z (16 days ago)
- Topics: angular, jest, testing, typescript
- Language: HTML
- Homepage:
- Size: 147 KB
- Stars: 1
- Watchers: 3
- Forks: 2
- Open Issues: 20
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Angular Testing Project
[![CI Github Action](https://github.com/ruslanguns/angular-testing-project/workflows/CI/badge.svg)](https://github.com/ruslanguns/angular-testing-project/actions)
[![Renovate](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![dependencies Status](https://status.david-dm.org/gh/ruslanguns/angular-testing-project.svg)](https://david-dm.org/ruslanguns/angular-testing-project)This is a monorepo project generated with the Angular CLI, which will contain different applications that will be fully tested from the basics to very advanced ways to test, from Unit, Integration and E2E testing.
## Inspiration
There are so many scenarios to test that it is impossible for us to try to remember how a certain test was performed on a component, or how something was integrated, sometimes, we have to search among many projects how it was that I did it on a certain occasion, it's definitely hard for us to remember, so, if you have seen yourself more than once with this problem, then this repository is for you.
The idea of ββthis repository is to be able to have an organized collection of the tests towards an Angular project. From unit tests to a specific method or advanced tests against complex forms and behaviors in our customizations in Angular.
The intention is to create a repository for each possible exercise, it is also to test that certain functionalities such as state management, websockets, interceptors, guards, etc., work as we are expecting.
Use this repository as a glossary or a repository to learn how to test your Angular applications like a pro.
The initiative is for you to be part of this project by adding your own tests and examples that you deal with on a day-to-day basis, I am sure that you will help another who may be in the same doubt, so I encourage you to submit your PRs and make a community together.
## Projects
- simple-unit-test
- simple-integration-test> Eventually you will have detail section of instruction for contribute with this project, all the ideas are very appreciated to submit them please add a new issue using the prefix in your subject title "Suggestion:" followed by your title and detailed suggestion.
## Contribution
I strongly invite you to read the [CONTRIBUTING.md](CONTRIBUTING.md) file before sending a PR, feel free to send your questions via an issue using the prefix "QUESTION:" or to DM me directly.
## Current tasks
- β Add instructions for contribution
- β Add License MIT
- β Add a new project with the hello world project
- β Add Jest as default testing service
- β Add Github Actions for automated testings
- β¬ Add Github Templates for Issues and PR## Development server
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
## Code scaffolding
Run `ng generate component component-name --project ` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module`, but please remember to point to the specific project.
## Build
Run `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `--prod` flag for a production build.
## Running unit tests
Run `ng test` to execute the unit tests via [Jest](https://jestjs.io/).
## License
The content of this project is provided under the [MIT license](LICENSE)
## Author
- Ruslan Gonzalez
- Twitter: [@ruslangonzalez](https://twitter.com/ruslangonzalez)