Skip to content

Commit

Permalink
divide into backend and frontend tests (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasheedamir authored Jun 28, 2019
1 parent 1145e7b commit de9ca2d
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions testing/testing.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Microservices Testing
# Backend Testing (Microservice)

how to test microservices based applications?

Expand Down Expand Up @@ -234,28 +234,29 @@ Tests should be automated as part of the build, release, run (delivery) pipeline

These three sets of tests, combined, should provide an extremely high level of confidence that any introduced change has not broken existing functionality.

## 8. Frontend
# Frontend Testing (Microfrontends)

Usually question arises how to test frontend?

### 8.1 Unit Tests
### 1 Unit Tests

- Business logic unit tests

### 8.2 Component Tests
### 2 Component Tests

- e.g. click on button should open a date picker

### 8.3 Integration Tests
### 3 Integration Tests

- Most of the tests should be written at this level
- Test the accepted user scenarios
- Test/verify the accepted user scenarios
- CDC from frontend to backend?

### 8.4 E2E Tests
### 4 E2E Tests

- Recommended to use Cypress

### 8.5 Best Practices
### 5 Best Practices

- Test as a user; never test underlying implementation details; so, one can easily switch the technology
- https://testing-library.com/
Expand Down

0 comments on commit de9ca2d

Please sign in to comment.