At what point in the work do you write a test?
Asked at
AI answer
Tests are worth thinking through as early as the requirements stage: they help clarify the expected behavior. In practice, they are written before or alongside implementation (for example, in TDD), or immediately after a small change while the context is still fresh. Tests are then run locally and in CI whenever changes are made. Testing should not be left until the end of a project: by then, mistakes and unclear requirements are more costly to address.
Also asked at Бюро 1440
- What is GIL in CPython, how is it implemented, and why is it needed?
- What is an iterator and a generator, how do they differ?
- What are asynchronous, multithreading, and multiprocessing? How do they differ and when should each be used?
- Compare multithreading, multiprocessing, and asynchronous in Python: differences, advantages, and disadvantages.
- What are the key differences between synchronous and asynchronous programming in Python? Please answer this question orally.
Similar questions
- How many automated tests did you have for a component you wrote?
- How do you decide that testing is complete and the task can be handed over?
- What did you use to write tests? Did you have test coverage, and what kinds of tests did you write?
- What is the basic testing process, and what are its stages?
- What do you cover with integration tests?