-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* break testing into backend and frontend * remove duplicated text
- Loading branch information
1 parent
de9ca2d
commit d08c1ac
Showing
3 changed files
with
34 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Frontend Testing (Microfrontends) | ||
|
||
Usually question arises how to test frontend? | ||
|
||
### 1 Unit Tests | ||
|
||
- Business logic unit tests | ||
|
||
### 2 Component Tests | ||
|
||
- e.g. click on button should open a date picker | ||
|
||
### 3 Integration Tests | ||
|
||
- Most of the tests should be written at this level | ||
- Test/verify the accepted user scenarios | ||
- CDC from frontend to backend? | ||
|
||
### 4 E2E Tests | ||
|
||
- Recommended to use Cypress | ||
|
||
### 5 Best Practices | ||
|
||
- Test as a user; never test underlying implementation details; so, one can easily switch the technology | ||
- https://testing-library.com/ | ||
|
||
# References | ||
|
||
* https://martinfowler.com/articles/microservice-testing/ | ||
* https://www.thoughtworks.com/insights/blog/architecting-continuous-delivery | ||
* https://vrockai.github.io/blog/2017/10/28/cypress-keycloak-intregration/ |