Testable JavaScript: Ensuring Reliable Code

3.43 avg rating
( 104 ratings by Goodreads )
 
9781449323394: Testable JavaScript: Ensuring Reliable Code

One skill that’s essential for any professional JavaScript developer is the ability to write testable code. This book shows you what writing and maintaining testable JavaScript for the client- or server-side actually entails, whether you’re creating a new application or rewriting legacy code.

From methods to reduce code complexity to unit testing, code coverage, debugging, and automation, you’ll learn a holistic approach for writing JavaScript code that you and your colleagues can easily fix and maintain going forward. Testing JavaScript code is complicated. This book helps experienced JavaScript developers simply the process considerably.

  • Get an overview of Agile, test-driven development, and behavior-driven development
  • Use patterns from static languages and standards-based JavaScript to reduce code complexity
  • Learn the advantages of event-based architectures, including modularity, loose coupling, and reusability
  • Explore tools for writing and running unit tests at the functional and application level
  • Generate code coverage to measure the scope and effectiveness of your tests
  • Conduct integration, performance, and load testing, using Selenium or CasperJS
  • Use tools for in-browser, Node.js, mobile, and production debugging
  • Understand what, when, and how to automate your development processes

"synopsis" may belong to another edition of this title.

Review:

Q&A with Mark Ethan Trostler, author of "Testable JavaScript"

Q. Why is your book timely-- what makes it important right now?

A. The rise of mobile is well documented. The only thing that all of these mobile devices have in common, not only with themselves but also their bigger desktop brethren, is a browser. The only language available in all of those environments is JavaScript. Now, with the rise of server-side JavaScript, it may well be the only language that developers need for their increasingly complex applications.

From the deepest darkest recesses of the server to the bright light of day on a mobile device, laptop, or desktop-- JavaScript is ubiquitous. Yet JavaScript is also a relative newcomer, especially on the server side. The toolchain-available ability to write, test, and deploy enterprise-scale (or any-scale) JavaScript-based applications is still in its infancy. In this fast-moving, constantly changing landscape it is more important than ever to understand the best practices surrounding how to structure, code, test, and deploy your JavaScript applications.

"Testable JavaScript" is at the forefront of this movement demonstrating how to craft, test, and deploy testable and maintainable JavaScript running on the complete stack from server to client (and back).

Q. What information do you hope that readers of your book will walk away with?

A. Readers will recognize that the lessons they have learned from previous experiences with other language translate well to JavaScript-- albeit with several twists and turns.

After gaining a better appreciation for the myriad of environments within which JavaScript must run, and then having wrapped their heads around code complexity as it relates to JavaScript specifically, readers will see concrete examples of how their JavaScript can get into trouble, followed by tips and honest advice how to extricate their code from those pitfalls.

Readers will see not only how to write code that is testable but also how exactly to test it-- from unit tests to integration tests to performance testing and beyond. Readers will get a first-hand look at how to generate code coverage for all of their JavaScript tests, both at the unit and integration test levels.

Finally, readers will learn how to make all of the above automatic in several different environments, whether running tests on the command line, in a headless browser, or in a real

Q. What's the most exciting/important thing happening in your space?

A. The rise of server-side JavaScript via NodeJS and Rhino is the most exciting development in the JavaScript world. Allowing developers to code their entire app in a single language is a giant boon for productivity. JavaScript is a "hot" language right now, not only is there tons of work being done on the server-side-- the number of open source third-party modules is growing exponentially-- but client-side JavaScript frameworks are also proliferating like weeds. There are a huge number of "framework" libraries available that are very actively being developed, not to mention that the language itself is also under heavy development.

Finally, browser vendors are far from standing still; there are a huge number of newly standardized and almost-standardized features being rolled out constantly in all major browsers for JavaScript developers to start taking advantage of.

There has never been a better time to be a JavaScript developer.

About the Author:

Mark Ethan Trostler has been writing and testing code for more than 20 years at startups (IPivot) and large corporations (Qualcomm, Intel, Redback Networks, Juniper Networks, Yahoo, and currently Google). Previously, as a Senior Principal Front End Engineer on the Yahoo! Mail team, he helped spearhead testing and quality for the latest rewrite of Yahoo! Mail. He's currently employed by Google as a Software Engineer in Test with the Ads team helping to ensure an excellent experience for their customers. He's spoken at several internal and external conferences (Yahoo TechPulse 2010 and 2011, Yahoo's Front End Summit, and at YUIConf 2011) about Testable Javascript and is the author of the Open Source Javascript Unit Test Environment (https://github.com/zzo/JUTE).

"About this title" may belong to another edition of this title.

Top Search Results from the AbeBooks Marketplace

International Edition
International Edition

1.

Mark Ethan Trostler
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback Quantity Available: 4
International Edition
Seller:
Bookstore99
(Wilmington, DE, U.S.A.)
Rating
[?]

Book Description Paperback. Book Condition: NEW. This is an International Edition. Brand New Paperback- Same Title Author and Edition as listed. ISBN and Cover design differs. Similar Contents as U.S Edition. Delivery within 3-7 business days ACROSS THE GLOBE. We can ship to PO Box address in US. International Edition Textbooks may bear a label "Not for sale in the U.S. or Canada" or "For sale in Asia only" or similar restrictions- printed only to discourage students from obtaining an affordable copy. US Court has asserted your right to buy and use International edition. Access code/CD may not provided with these editions. We may ship the books from multiple warehouses across the globe including Asia depending upon the availability of inventory. Printed in English. Customer satisfaction guaranteed. Choose expedited shipping for Express delivery. Tracking number provided for every order. Bookseller Inventory # RU_9781449323394

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 13.49
Convert Currency

Add to Basket

Shipping: US$ 2.99
Within U.S.A.
Destination, Rates & Speeds
International Edition
International Edition

2.

Mark Ethan Trostler
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Softcover Quantity Available: 10
International Edition
Seller:
bookscollection
(Delhi, DELHI, India)
Rating
[?]

Book Description Book Condition: Brand New. PAPERBACK,Book Condition New, International Edition. We Do not Ship APO FPO AND PO BOX. Cover Image & ISBN may be different from US edition but contents as US Edition. Printing in English language.NO CD AND ACCESS CODE. Quick delivery by USPS/UPS/DHL/FEDEX/ARAMEX ,Customer satisfaction guaranteed. We may ship the books from Asian regions for inventory purpose. Bookseller Inventory # ABEAVS*##6061

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 15.16
Convert Currency

Add to Basket

Shipping: US$ 4.13
From India to U.S.A.
Destination, Rates & Speeds

3.

Mark Ethan Trostler
Published by O Reilly Media, Inc, USA, United States (2013)
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback Quantity Available: 1
Seller:
The Book Depository US
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2013. Paperback. Book Condition: New. Language: English . Brand New Book. That s right: JavaScript code is testable, despite the lack of unit test standards for this language. With this book, you ll discover how to devise excellent tests and real-world testing plans for your existing JavaScript code. Developers starting out on a new project will greatly benefit from these guidelines. Testing a language that runs within many different implementations and environments is inherently difficult - and since most JavaScript environments are UI-based, automated testing becomes even more difficult. This guide shows developers and their managers how to overcome these problems to test JavaScript code efficiently. Topics include: Which types of Javascript testing are most effective When and why should you run tests on Javascript code Code patterns and anti-patterns that promote and inhibit Javascript testing Integrating unit tests with your development and build environments (automated test running and reporting) Code coverage: how to get it, interpret it, and automatically generate it. Bookseller Inventory # AAH9781449323394

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 21.55
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds

4.

Mark Ethan Trostler
Published by O Reilly Media, Inc, USA, United States (2013)
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback Quantity Available: 1
Seller:
The Book Depository
(London, United Kingdom)
Rating
[?]

Book Description O Reilly Media, Inc, USA, United States, 2013. Paperback. Book Condition: New. Language: English . Brand New Book. That s right: JavaScript code is testable, despite the lack of unit test standards for this language. With this book, you ll discover how to devise excellent tests and real-world testing plans for your existing JavaScript code. Developers starting out on a new project will greatly benefit from these guidelines. Testing a language that runs within many different implementations and environments is inherently difficult - and since most JavaScript environments are UI-based, automated testing becomes even more difficult. This guide shows developers and their managers how to overcome these problems to test JavaScript code efficiently. Topics include: Which types of Javascript testing are most effective When and why should you run tests on Javascript code Code patterns and anti-patterns that promote and inhibit Javascript testing Integrating unit tests with your development and build environments (automated test running and reporting) Code coverage: how to get it, interpret it, and automatically generate it. Bookseller Inventory # AAH9781449323394

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 22.42
Convert Currency

Add to Basket

Shipping: FREE
From United Kingdom to U.S.A.
Destination, Rates & Speeds
International Edition
International Edition

5.

Mark Ethan Trostler
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Quantity Available: 10
International Edition
Seller:
Unique Bookseller
(Delhi, India)
Rating
[?]

Book Description Book Condition: Brand New. .. Black & White or color International Edition. ISBN and front cover may be different, but contents are same as the US edition. Book printed in English. Territorial restrictions may be printed on the book. GET IT FAST within 3-5 business days by DHL/FedEx/Aramex and tracking number will be uploaded into your order page within 24-48 hours. Kindly provide day time phone number in order to ensure smooth delivery. No shipping to PO BOX, APO, FPO addresses. 100% Customer satisfaction guaranteed!. . Bookseller Inventory # UBS09532

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 22.44
Convert Currency

Add to Basket

Shipping: FREE
From India to U.S.A.
Destination, Rates & Speeds

6.

Trostler, Mark Ethan
Published by O'Reilly Media
ISBN 10: 1449323391 ISBN 13: 9781449323394
New PAPERBACK Quantity Available: > 20
Seller:
Mediaoutlet12345
(Springfield, VA, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. PAPERBACK. Book Condition: New. 1449323391 *BRAND NEW* Ships Same Day or Next!. Bookseller Inventory # SWATI2132559829

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 21.45
Convert Currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, Rates & Speeds

7.

Trostler, Mark Ethan
Published by O'Reilly Media 2/3/2013 (2013)
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback or Softback Quantity Available: 10
Seller:
BargainBookStores
(Grand Rapids, MI, U.S.A.)
Rating
[?]

Book Description O'Reilly Media 2/3/2013, 2013. Paperback or Softback. Book Condition: New. Testable JavaScript: Ensuring Reliable Code. Book. Bookseller Inventory # BBS-9781449323394

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 26.13
Convert Currency

Add to Basket

Shipping: FREE
Within U.S.A.
Destination, Rates & Speeds

8.

Trostler, Mark Ethan
Published by O'Reilly Media (2017)
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback Quantity Available: > 20
Print on Demand
Seller:
Murray Media
(North Miami Beach, FL, U.S.A.)
Rating
[?]

Book Description O'Reilly Media, 2017. Paperback. Book Condition: New. Never used! This item is printed on demand. Bookseller Inventory # 1449323391

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 24.41
Convert Currency

Add to Basket

Shipping: US$ 1.99
Within U.S.A.
Destination, Rates & Speeds

9.

Trostler, Mark Ethan
Published by O'Reilly Media
ISBN 10: 1449323391 ISBN 13: 9781449323394
New PAPERBACK Quantity Available: 10
Seller:
Lakeside Books
(Benton Harbor, MI, U.S.A.)
Rating
[?]

Book Description O'Reilly Media. PAPERBACK. Book Condition: New. 1449323391 BRAND NEW, GIFT QUALITY! NOT OVERSTOCKS OR MARKED UP REMAINDERS! DIRECT FROM THE PUBLISHER!|0.97. Bookseller Inventory # OTF-Y-9781449323394

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 24.13
Convert Currency

Add to Basket

Shipping: US$ 3.99
Within U.S.A.
Destination, Rates & Speeds

10.

Mark Ethan Trostler
Published by O'Reilly Media 2013-01-31 (2013)
ISBN 10: 1449323391 ISBN 13: 9781449323394
New Paperback Quantity Available: 5
Seller:
Chiron Media
(Wallingford, United Kingdom)
Rating
[?]

Book Description O'Reilly Media 2013-01-31, 2013. Paperback. Book Condition: New. Bookseller Inventory # NU-ING-27434845

More Information About This Seller | Ask Bookseller a Question

Buy New
US$ 25.59
Convert Currency

Add to Basket

Shipping: US$ 3.97
From United Kingdom to U.S.A.
Destination, Rates & Speeds

There are more copies of this book

View all search results for this book