GitHub · GH-300
Testing and security
GH-300 · Lesson 10 of 11 · 1:02:14
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
In this lesson
Prepare for the GH-300 exam (GitHub Copilot certification). In this lesson: unit tests with /tests and /fixTestFailure, integration tests with clear boundaries and mocks, edge cases and precise assertions, security reviews (SQL injection, cross-site scripting, hardcoded secrets), performance improvements with benchmarks, and why Copilot complements, but doesn't replace, security scanning and review. Includes three original practice questions.
Preview the topics
- A developer wants unit tests for a selected function, in the project’s existing test framework. What’s the quickest way?
- Copilot’s tests for a date parser only check valid dates. What should the developer ask for next?
- A function builds a SQL query by joining strings with user input. What should Copilot suggest?