https://github.com/gregonnet/talk-angular-test-harness
https://github.com/gregonnet/talk-angular-test-harness
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/gregonnet/talk-angular-test-harness
- Owner: GregOnNet
- Created: 2023-06-26T05:33:46.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-19T06:58:41.000Z (over 2 years ago)
- Last Synced: 2025-01-23T13:13:50.153Z (over 1 year ago)
- Language: TypeScript
- Size: 482 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DWX 2023 Talk - Angular Test Harness
> brought to you with 🥰 by [co-IT.eu](https://co-it.eu) GmbH
## Slides
- 🖌️ https://speakerdeck.com/gregonnet/angular-material-test-harness
## Inside this repository
- Mono Repository containing a
- Angular Client
- .Net Web-API
### Angular Client
- Tests written with [Angular Material Test Harness](https://material.angular.io/cdk/test-harnesses/overview)
- Data State is maintained by [@ngneat/query](https://github.com/ngneat/query)
### .Net Web-API
- API documented with Open API
- SQLite Database
- EntityFramework
## Written Tests
- [x] Material Checkbox
- [x] Material Button
- [x] Material Input
- [x] Material Select
- [x] Material Table
## Prerequisites
- Having .[Net 7](https://dotnet.microsoft.com/en-us/download/dotnet/7.0) installed
- Having [Node 18](https://nodejs.org/en/download) installed
- \*Having [pnpm](https://pnpm.io/installation) installed
- You also can install the dependencies with _npm_ or _yarn_.
- In our company we completely switched to _pnpm_.
## Getting Started
```
git clone https://github.com/co-IT/talk-dwx-2023-angular-test-harness.git
cd talk-dwx-2023-angular-test-harness
pnpm i
# Console 1: Angular Client
pnpm nx serve --project insurance-documents
# Console 2: .Net Web API
pnpm nx serve --project insurance-documents.web-api
```
## Execute Tests
```
# Jest
pnpm nx run insurance-documents:test --watch
# Cypress Component Tests
pnpm nx run insurance-documents:component-test --watch
```