Reference docMembers
Writing Functional Tests
Writing Functional Tests is a reference document for GitHub Copilot, from the GitHub awesome-copilot collection by github. The full text is about 1,715 words in 14 sections, with 2 code blocks. It is a supporting file that a skill or agent reads while it works, so the main instructions can stay short.
It is most useful for people working in Documentation and Testing and QA who use GitHub Copilot.
What it covers
- Structure: Three Test Groups
- Test Count Heuristic
- Import Pattern: Match the Existing Tests
- Create Test Setup BEFORE Writing Tests
- No Placeholder Tests
- Read Before You Write: The Function Call Map
- Writing Spec-Derived Tests
- What Makes a Good Functional Test
- Cross-Variant Testing Strategy
- Anti-Patterns to Avoid
The full text is in the members library
Book a call and we will give you access to the full GitHub Copilot library: every entry in full, search by meaning, copy and download.
Author: github, GitHub awesome-copilot. License: Apache-2.0.