Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Node.js High Performance

You're reading from   Node.js High Performance Take your application to the next level of high performance using the extensive capabilities of Node.js

Arrow left icon
Product type Paperback
Published in Aug 2015
Publisher
ISBN-13 9781785286148
Length 136 pages
Edition 1st Edition
Tools
Arrow right icon
Author (1):
Arrow left icon
Diogo Resende Diogo Resende
Author Profile Icon Diogo Resende
Diogo Resende
Arrow right icon
View More author details
Toc

Test fundamentals

Tests can be defined in a variety of ways. The most common approach is unit testing. This is a method by which parts of your application are individually checked to confirm that they comply with the specifications. This approach encourages your application parts to act as independent and replaceable black boxes.

You need real data to properly test your application. You also need unrealistic data. Both are crucial to confirm that it behaves as expected with both correct data and scrambled data. This ensures that a misguided or malicious user won't break your application.

You might be wondering what I mean by unrealistic data. Does your application handle text in date fields or numbers in checkboxes? What about missing data? You might think it does, but if you have more developers working on it, you may want to ensure that, somewhere in the future, it doesn't stop behaving correctly. The most common type of bug occurs in one place after making a change in a completely...

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
Banner background image