Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Advanced JavaScript

You're reading from   Advanced JavaScript Speed up web development with the powerful features and benefits of JavaScript

Arrow left icon
Product type Paperback
Published in Jan 2019
Publisher
ISBN-13 9781789800104
Length 330 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Zachary Shute Zachary Shute
Author Profile Icon Zachary Shute
Zachary Shute
Arrow right icon
View More author details
Toc

Summary


Code testing is one of the most important skills a developer can have. Testing code is like going to the gym. You know it's good for you, but it can often be difficult to begin. In this chapter, we discussed the reasons to test code, several types of code tests, and several JavaScript code testing frameworks. Code tests need to be done to ensure program correctness. Test-Driven Development is one of the simplest ways to begin integrating tests into a project. TDD revolves around writing tests that outline the requirements of any feature or function added, before any implementation code is written. There are many forms of code tests. In this chapter, we covered unit tests, functional tests, and integration tests. These types of code tests are the most common and are generally built from one of two methodologies: black box and white box. Functional, unit, and integration tests can all be built in many of the frameworks covered in the previous topic.

In the next chapter, we will cover...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime