Integration Tests
<Code> -> AWS
- This was used to be, but we don't want it to be
Now:
- Unit
- No local dependency
- Files:
- logic.js
- schema.js
- Integration
- Manage only internal dependency
- Any Database
- We are not gonna make any Http or Axios (Works well with our database)
- Files:
- action.js
- E2E
- Observability
- Observe what's in the Cloud
- Observability
Our Files:
- logic.js
- business logic / Rules >> Unit Test (Deterministic)
- ex: ExposureWindows are valid
- intricate
- business logic / Rules >> Unit Test (Deterministic)
- actions.js
- External Communications >> (NonDetermimistic)
- schema.js
- Input validation >> Unit Test (Deterministic)
- index.js
- pull everything together (composer) >> Integration Tests
- If we mock >> it becomes deterministic
- If we don't mock >>
- helper functions
- don't need to be tested (NonDeterministic)
- daos
- Access the external data >> No Testing >> NonDeterministic
'BYU-Broadcast > ScreenSharing' 카테고리의 다른 글
[Screen Sharing] Nuxt and SSR (Server Side Rendering) (0) | 2022.05.11 |
---|---|
[ScreenSharing] Modify Convert File Type Step (0) | 2022.05.07 |
[ScreenSharing] Tests for AWS ECS and Lambda function with Serverless (0) | 2022.04.29 |
[ScreenSharing] AWS CloudFront, AWS DNS with caching (0) | 2022.04.29 |
[ScreenSharing] How to lower the cost of AWS? AWS Lambda vs AWS Fargate (0) | 2022.04.29 |