Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 631 Bytes

File metadata and controls

23 lines (14 loc) · 631 Bytes

Exercises: Testing

Theoretical exercises:

Practical exercises:

The solutions are available.

Ideas for your own projects:

  • Write unit tests for the functions in your code
  • Update your code to inject dependencies (e.g an HTTP client), so you can test your modules
  • The next time you encounter a bug, start by writing a regression test that reproduces that bug.
  • Try test-driven development for your next feature addition