Test to Break Principles - May 2019
There are two types of tests developers can write, ‘test to work’ and ‘test to break’ and both are essential to produce good software. This talk delves into the importance of test to break principles, which are used widely in other industries, to show how they improve code and product quality. The talk highlights the importance of tests, why developers should spend more time on tests, and how test to break principles generate more robust applications. The talk also: - Explains the difference between tests which help applications to function and tests which aim to break and stress business logic so applications do not fail. - Includes code demos that show how test to break principles work in practice. - Draws comparisons to other industries, such as the car industry, who have used test to break methodologies to drive product improvement and safety for decades. - Shows how test to break principles deal with the 'working software myth' and help developers overcome the 'ignorance / complexity' problem. - Highlights how test to break principles force developers to introduce logic to handle unexpected behaviour and write code that can only be used in one way.