Kyle wraps up the course by answering a question about unit testing. He concludes with his contact information and a few last words of wisdom.
(futuristic music)…- [Kyle] Let's see, are there any last questions…that I haven't answered about this exercise?…- [Student] Not about this exercise, more in general.…- Mhm.…- Testing.…- Testing.…Yeah, obviously, that was way outside of the scope…of the things that I wanted to do here,…but I do typically write…a smaller subset of unit tests.…And what I would look at in a shared environment like this,…is the stuff that I want to unit test is the stuff…that's shared.…
Because that's the stuff that I know can run agnostic…of its environment.…So that validator rule, for example.…That's a really easy thing to unit test…'cause I know I can just stuff a bunch of data…in it and I'm asserting that I'm going to get…the right answers out.…So, I typically, again, I know that a lot of people…have their different opinions on what test frameworks…they like or whatever, there's a real simple one…that's still powerful enough for most of what I use…and that's QUnit.…And I use QUnit to do my basic assertions…of little unit tests like that.…
Note: This course was created on 03/29/2016 by Frontend Masters. We are pleased to host this content in our library.
- Carousels, panes, and modules
- Middle-end architecture
- Secure phrase generator
- Routing functions
- Calling the API
- Rendering on the page
- Shared data validation
Skill Level Intermediate
2. Organizing Code
5. Adding a Shared Module
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.