BYU-Broadcast/ScreenSharing

[ScreenSharing] Integration tests

brightlightkim 2022. 5. 3. 07:58

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

 

Our Files:

  • logic.js
    • business logic / Rules >> Unit Test (Deterministic)
      • ex: ExposureWindows are valid
    • intricate
  • 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