Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
- Node.js Basics
- npm Basics
- Tests help us understand the code we want to write -- like an outline
- Tests let us know if our code behaves the way we want it to behave
- Tests tell us when we’ve accidentally broken something
- "Unit tests" focus on small, meaningful chunks of functionality
- Good unit tests are easy to understand
node, and mpm.
So make sure you complete all the prerequisites for
this course before continuing.
And if you wanna brush up on some of those videos, I've included the links and
the teacher's notes as well.
Behavior Driven Development or BDD.
In BDD we write special functions, called tests, for
our application before we actually write any real code.
These tests describe how a code should work.
In other words, tests describe the expected behavior of our application.
Having these tests written already will help us understand the code we
want to write.
Like an outline, as we continue writing our code
our tests will let us know as soon as our programs behave the way we want them to.
They'll also tell us when we've accidentally broken something
along the way.
We'll build up our tests to cover one small unit of our code at a time.
This style of testing is called unit testing.
Since unit tests focus on small,
meaningful chunks of functionality, good unit tests are easy to understand.
They prove that each piece of our code does what we want.
In the next video,
I'll cover some of the ways unit testing makes development easier.
You need to sign up for Treehouse in order to download course files.Sign up