From the course: Software Testing Assistance with GitHub Copilot AI
Unlock the full course today
Join today to access over 24,900 courses taught by industry experts.
Configuring a test suite - Github Copilot Tutorial
From the course: Software Testing Assistance with GitHub Copilot AI
Configuring a test suite
- [Instructor] Testing's a very broad discipline and something devs don't do enough of. You can spend a lot of time trying to define the types of tests and determining the best approach. At the end of the day, any tests are better than no tests. In this course, I'm using PHP, so I'll use PHP unit as a starting point. But this video is not specifically about PHP, it's about how to think about tests and test configuration. Before I even get into the test suite configuration, I want to encourage you to find the test conventions in your language. For example, in Go, tests are always in the same folder as the code they're testing. PHP will typically have a test directory with tests in it that are set up to match the directory structure of what is under test. Taking that a step further, Laravel groups tests as feature and unit. Again, I don't want to get too bogged down into what type of tests you're writing. If you're testing a single method, it's probably unit test, but it might not be if…