This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Secrets of the JS Ninja: Testing Javascript  RSS feed

 
Steven Wall
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John and Bear,

Does your book cover how to test Javascript code with both unit and functional tests? If so, does it recommend any particular frameworks?

(Really looking forward to your book!)

Thanks!
Steve
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66208
151
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That could be a book in itself!

In chapter 2, we provide an overview of testing approaches and introduce some frameworks. There wasn't room to go into extensive detail, but we tried to provide enough info to figure out which ones you might want to delve further into.

For use within the remainder of the book, we develop our own simple assert() mechanism to use for testing assertions, and a technique for performance evaluation. We didn't want to use any one particular framework throughout the book, because a book that uses a framework inevitably becomes a book about that framework, and we wanted to focus on pure JavaScript.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!