·
Robert C. Martin, also known as Uncle Bob,
is a world leader in software development and author of several books on agile development,
he defined, in his Clean Code writing, some basic principles for the development of unit tests
known by its acronym FIRST (fast, independent, repeatable, self-validating, timely).
―𝐅𝐀𝐒𝐓
Many hundreds or thousands per second
―𝐈𝐬𝐨𝐥𝐚𝐭𝐞𝐬
Failure reasons become obvious
―𝐑𝐞𝐩𝐞𝐚𝐭𝐚𝐛𝐥𝐞
Run repeatedly in any order, any time
―𝐒𝐞𝐥𝐟-𝐯𝐚𝐥𝐢𝐝𝐚𝐭𝐢𝐧𝐠
No manual evaluation required
―𝐓𝐢𝐦𝐞𝐥𝐲
Written before the code