Visual Studio Code for Python Developers Transcripts
Chapter: Testing your Code
Lecture: Testing Overview

Login or purchase this course to watch this video and the rest of the course contents.
0:00 Welcome to Chapter 7 of the Visual Studio Code for Python Developers course.
0:06 In this chapter, we're going to be talking about how you can test your code.
0:08 And we're going to look at some of the different options that Visual Studio Code has built in for enhancing your testing workflow.
0:16 You know what I was just thinking though? Isn't it weird that the testing chapter always ends up at the end of the book or the course?
0:22 Anyway, not a big deal. Let's keep going. So in this chapter, we're going to talk about some of the different options you have.
0:29 So you'll see how you can execute your commands for your tests by the command line if that's a workflow you're already using.
0:35 But we're also going to see how to use the test explorer that's built into VS Code. We're going to talk a little bit about test discovery.
0:41 And obviously, we're going to see how we can run and debug our tests so we can see exactly what's going on and make any changes if we need to.
0:48 And then we're going to take a look at some of the configuration options as well.
0:51 So what are some of the things that you could use to fine tune exactly how your tests are running inside of VS Code?
0:56 Now the Python extension in Visual Studio Code has support for a lot of different community frameworks and tools.
1:03 And when it comes to unit testing, it actually supports two of the most common testing frameworks,
1:07 which is unit test, which is built in, and also pytest, which is a third-party dependency.
1:12 In this chapter, we're going to focus on using pytest since it can run pytest tests and also unit test tests. So I think that's a win-win.
1:20 So let's go ahead and get started.


Talk Python's Mastodon Michael Kennedy's Mastodon