O'Reilly logo

Quality Code: Software Testing Principles, Practices, and Patterns by Stephen Vance

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 15. Legacy JavaScript

Michael Feathers defines legacy code as code without tests [WEwLC]. JavaScript and other dynamic languages benefit from tests by exercising a wider range of the dynamic behaviors that sometimes make them behave in unanticipated ways. Open-source projects benefit from tests so that multiple contributors can make changes without each having to be intimately familiar with all behaviors.

In contrast, open-source JavaScript projects without tests survive through simplicity or a small number of immersed maintainers, and often both. Increasingly, open-source JavaScript projects include tests, but some very useful and popular projects remain without them.

The jQuery Timepicker Addon1 by Trent Richardson is one such project. ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required