Test Driving: The Programmer’s Guide
Many people in organizations can motivate teams to test-drive their development. But no single group other than programmers have a greater ability to influence the outcome of this effort. Let’s discuss how test-driving code can give programmers a better leverage to create maintainable code.
When beginning to work on features or a set of features, start with just enough strategic design to get a high-level exposure to the problem and the direction for the solution. Then distill it down to select areas to start the coding efforts. Write down a test list and pick first the most useful functions to implement. Every step of the way, write a test before writing the minimum code to make the test pass.
While writing ...
Get Test-Driving JavaScript Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.