Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 863 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 863 Bytes

Design decisions

  • Client contains http client, apiUrl and AccountApiService
  • AccountApi is a field in Client, it uses Client's http client and ApiUrl
  • Requests timeout is supported and should be used as context
  • Github Actions are used for CI

Trade-offs

  • e2e tests limited to capabilities of provided server
  • mockhttp is used to mock non-standard http error codes (102, 410, ...)
  • some possible paths to errors are not covered with tests (coverage = 84%)

How to test

On github

Tests are executed as a github action on every push.

Locally

Locally tests can be executed two ways:

  1. Using Makefile
    • $ make tests
  2. Using act to run github actions locally
    • Install act
    • $ act (in repo root)