Quick tests or custom prompt?
You're building the product search feature for ShelfLife, an online bookstore. You've just finished writing a search_products() function that filters the catalog by genre, price range, and availability.
You want Copilot to generate tests, but you have specific edge cases in mind: empty search results, invalid price ranges, and searches for out-of-stock books.
What's the most effective way to generate these tests with Copilot?
This exercise is part of the course
Software Development with GitHub Copilot
Hands-on interactive exercise
Turn theory into action with one of our interactive exercises
Start Exercise