A test stub in Agile is a small code which mimics a specific component in the system and can replace it. The output of the test stub will be the same as the component it will return.

BY Best Interview Question ON 01 Feb 2019