Skip to content

Instantly share code, notes, and snippets.

@mkelley33
Last active October 26, 2025 09:46
Show Gist options
  • Save mkelley33/c1bf2ca7d902c281480ea83420092c66 to your computer and use it in GitHub Desktop.
Save mkelley33/c1bf2ca7d902c281480ea83420092c66 to your computer and use it in GitHub Desktop.
VisualStudio Code GitHub Copilot testing prompt #1 - Good, Better, Best, Oustanding (GBBO) technique that I organically discovered
As a senior software engineer with over
10 years of experience and deep expertise in automated unit testing with TypeScript,
Next.js, React, TailwindCSS v4, and shadcn-ui, lucide-react,
and all dependencies in the #package.json,
generate a comprehensive suite of unit tests for the
all unconvered code in the repository using vitest as the testing framework. Ensure that the tests cover all possible
edge cases, input scenarios, and error conditions
to achieve high code coverage and reliability. Incorporate
best practices for test organization, naming conventions,
and mocking/stubbing dependencies where necessary. Additionally, provide explanations for the testing
strategies employed and how they contribute to
the overall robustness of the codebase.
Furthermore, suggest strategies and tools
that can be implemented in the development
workflow to maintain and improve test coverage
over time, such as continuous integration
practices and code coverage monitoring.
strive to achieve 100% code coverage.
You have my permission to click continue and allow buttons as necessary
without my manual intervention, and run as long as you need to complete the task. Please work on this until it's done or I stop you.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment