This course contains good reference material, but does not reflect our current quality standards.
Transcript from the "Final Questions" Lesson
>> Kyle: Let's see, are there any last questions that I haven't answered about this exercise? Yeah
>> Speaker 2: Not about this exercise, more in general, testing.
>> Kyle: Testing. Yeah, obviously that was way outside of the scope of things that I wanted to do here. But I do typically write a smaller subset of unit tests.
[00:00:27] And what I would look at in a shared environment like this is the stuff that I wanna 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.
[00:00:43] Cuz I know I can just stuff a bunch of data in it and I'm asserting that I'm gonna 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.
[00:01:02] And I use QUnit to do my basic assertions of little unit tests like that. Most of the time, I don't even need the asynchronous capability. If I need an asynchronous test, Mocha is another suite that's maybe a little bit better at doing asynchronous testing. But I don't go to the real extreme routes that other people do, there's a lot of great testing frameworks out there.
[00:01:23] But I'll do a QUnit for a basic set of unit tests. And then I will do regression tests for my integration in my browser. And that'll test all the other paths, kinda the full package all together. Again, minimal, I start with no test and work until I have confidence on it.
[00:01:43] Instead of assuming that I need to write lots and lots and lots and lots of tests.
[00:03:01] And I'll just leave you with that to say, is there a question I missed? Which direction would you go if you were to scale up? I assume the question means if I needed something more framework-ish, which direction would I go? The next step up is I'd move to Express or maybe KOA.
>> Kyle: So I'm not sure if that was exactly the question.
>> Speaker 3: The other question was, can you share this code that-
>> Kyle: Yeah, absolutely, the current state of things as I just wrote it, that'll be part of a zip file. I'll send out a zip file that has the corrected stuff that I messed up plus this new stuff.
[00:03:39] So that'll be sent out, so you'll have this copy of this code. It'll also probably end up on GitHub pretty quick but I'll send a zip file to you so you have it right away. Okay, well, what I was saying on this last slide, as an open ended invitation to anyone that ever takes one of my workshops I mean it when I say that it's impossible for you to have completely, fully uncompressed everything that we talked about today.
[00:04:02] There's a lot to go through. So I encourage you not let this be the last moment that you ever look at these exercises or look at the slides. Go back over them, go back over your notes, try the exercise stuff that we did from scratch, try it. And you may need to try it a few times and it's quite likely that you're going to run into some problem or frustration or question or something that we missed.
[00:04:24] So I want to invite you to feel free to reach out and ask questions from here on out. There's lots of different ways to get ahold of me, Ttweet at me, send me an email, whatever. All the time, I get emails from former attendees of workshops and I love helping people.