Test-driving JavaScript applications : rapid, confident, maintainable code /
By: Subramaniam, Venkat [author.].
Series: Pragmatic programmers: Publisher: Raleigh, North Carolina : The Pragmatic Bookshelf, 2016Description: xvii, 339 pages : illustrations ; 24 cm.Content type: text | text | still image Media type: unmediated | unmediated Carrier type: volume | volumeISBN: 9781680501742; 9781680501742; 1680501747.Subject(s): JavaScript (Computer program language) | Application software -- Development | Application software -- Testing | Java (Computer program language) | Web applications -- DevelopmentDDC classification: 005.14Item type | Current library | Call number | Status | Date due | Barcode | Item holds |
---|---|---|---|---|---|---|
![]() |
ATU Sligo Yeats Library Main Lending Collection | 005.14 SUB (Browse shelf(Opens below)) | Available | 0065643 |
Includes bibliographical references (page 333-335) and index.
Acknowledgements -- Introduction -- Automation shall set you free -- Test-drive your design -- Test asynchrony -- Tactfully tackle dependencies -- Test-drive Node.js apps -- Test-drive express apps -- Working with the DOM and jQuery -- Using AngularJS -- Test-drive Angular 2 -- Integrate and test end-to-end -- Test-drive your apps.
Debunk the myth that JavaScript is not easily testable. Whether you use Node.js, Express, MongoDB, jQuery, AngularJS, or directly manipulate the DOM, you can test-drive JavaScript. Learn the craft of writing meaningful, deterministic automated tests with Karma, Mocha, and Chai. Test asynchronous JavaScript, decouple and properly mock out dependencies, measure code coverage, and create lightweight modular designs of both server-side and client-side code. Your investment in writing tests will pay high dividends as you create code that's predictable and cost-effective to change.