What are the challenges of writing unit tests?
Challenges include:
- Managing external dependencies and state.
- Writing tests for legacy or tightly coupled code.
- Maintaining tests as code evolves.
- Ensuring tests are meaningful and not brittle.
- Balancing test coverage and development speed.