Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed JavaScript Unit Testing!
You have completed JavaScript Unit Testing!
Preview
Let’s compare the output of an automated test with our old manual debugging methods.
Resources
Benefits of automated testing
- Results displayed in an informative way
- Test files are separate from real code
- Output is easy to read and understand
- Guarantees code works as expected
- Instantly see if anything has broken when making changes
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
We'll build a collection of
test functions called a suite.
0:00
Mocha, like all testing frameworks,
0:02
lets us run all of our
tests whenever we want to.
0:04
So we can make sure our functions
run as we expect them to.
0:07
This will increase our confidence
that our code is working, and
0:10
it will make understanding
problems much easier.
0:14
So let me show you how easy it can be.
0:17
Developers use the term test suite
in different ways sometimes.
0:20
Some use it to refer to the whole
collection of all our test.
0:24
Sometimes it means a particular
selection of tests that are related.
0:28
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up