Introduction to JavaScript Testing

JavaScript is increasingly taking on a more prominent role in .NET-based applications. In spite of that, JavaScript testing is not a discipline that is widely embraced. An often cited reason is that it is very difficult to write well organized and testable JavaScript code. If you have struggled with JavaScript, John will introduce you to techniques and tools that will make it easier for you to write testable JavaScript code and JavaScript Tests. John will introduce you to two tools: 1 – the jQuery QUnit JavaScript unit testing library and 2 – sinonJS, which is a JavaScript mocking library. John has created a custom Visual Studio project template that has been optimized to make writing and running JavaScript tests in Visual Studio as easy as writing other unit tests.

John Petersen

John Petersen has been developing software for 20 years, starting with dBase, Clipper and FoxBase + thereafter, migrating to FoxPro and Visual FoxPro and Visual Basic. Other areas of concentration include Oracle and SQL Server – versions 6-2008. John is the Philadelphia Microsoft Practice Director for CEI America (, a Microsoft Gold Partner. From 1995 to 2001, he was a Microsoft Visual FoxPro MVP. Today, his emphasis is on ASP MVC .NET applications. He is a current Microsoft ASP .NET MVP. In 1999, he wrote the definitive whitepaper on ADO for VFP Developers. In 2002, he wrote the Absolute Beginner’s Guide to Databases for Que Publishing. John was a co-author of Visual FoxPro Enterprise Development from Prima Publishing with Rod Paddock, Ron Talmadge and Eric Ranft. He was also a co-author of Visual Basic Web Development from Prima Publishing with Rod Paddock and Richard Campbell. In 2004, John graduated from the Rutgers University School of Law with a Juris Doctor Degree. He passed the Pennsylvania and New Jersey Bar exams and was in private practice for several years.