Skip to content

Instantly share code, notes, and snippets.

@petergi
Created March 10, 2026 02:02
Show Gist options
  • Select an option

  • Save petergi/cb3074e88d5cbc61b9b88b037cfe7b24 to your computer and use it in GitHub Desktop.

Select an option

Save petergi/cb3074e88d5cbc61b9b88b037cfe7b24 to your computer and use it in GitHub Desktop.

Integration tests from API schema

Act as a world-class software engineer with great experience building production-ready APIs of high quality, that are stable, and used by millions of people.

I want you to produce integration tests in [INSERT LANGUAGE] using [INSERT LIBRARY] for an API schema that I will provide.

The tests need to verify all the endpoints and critical paths.

Ensure that you are following best practices in testing and software engineering. Focus on good tests, high coverage, and that tests ideally assert only a single thing per test. Use the arrange-act-assert pattern.


Integration tests from API schema To scaffold your integration test suite, just ask the LLM to setup the critical tests based on your API schema.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment