aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Secrets of the JS Ninja:  Testing Javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Secrets of the JS Ninja:  Testing Javascript" Watch "Secrets of the JS Ninja:  Testing Javascript" New topic
Author

Secrets of the JS Ninja: Testing Javascript

Steven Wall
Greenhorn

Joined: Nov 04, 2007
Posts: 22
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

SCJP, SCWCD
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60041
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Secrets of the JS Ninja: Testing Javascript
 
Similar Threads
NullPointer exception while printing array elements
* Welcome John Resig and Bear Bibeault
Secrets of the JavaScript Ninja: Which js libraries does your book focus on ?
Secrets of JavaScript Ninja - Is this book for someone new to JavaScript?
Secrets of JavaScript Ninja - Emphasis on coding techniques and browser compatibility?