Skip to content

scierainc/appsync_testgen

Repository files navigation

AppSync TestGen (VS Code Extension)

VS Code Marketplace Version Installs Rating

Install on VS Code

AppSync TestGen | Product Hunt

📘 Docs: https://scierainc.github.io/appsync_testgen/

Generate per-operation GraphQL contexts from an AppSync schema, draft test plans with an LLM, and materialize executable tests for Pytest or Jest. Includes optional resolver/data-source harvesting (IAM), per-operation prompt customization, and Allure reporting.

⚠️ Warning
Some parts of this codebase were “vibe-coded” for speed. Use with care, review generated code, and expect sharp edges in advanced/edge cases.

Status

  • Pytest flows: stable.
  • IAM in Pytest: requires your own SigV4 wiring in graphql_client.py.
  • Allure: supported via tasks.
  • Jest: basic paths wired, see TODO.

Quick links


Features

  • Build per-operation contexts with:
    • Canonical operation.graphql
    • Pruned operation.sdl.graphql
    • Rich context.json (args, variables skeleton, typeClosure, returnTree)
    • Copy of resolver artifacts (if harvested)
  • LLM-backed plan generation with SDL validation & auto-repair of invalid GQL
  • Per-operation prompt customization (settings + files + wildcards)
  • Materialize Pytest or Jest tests from plans
  • Allure reporting tasks (workspace & external contexts)

Quickstart

  1. Fetch schema → Build contexts → Generate plans → Materialize tests
  2. Run Pytest or Jest via tasks (.vscode/tasks.json)
  3. Allure: pytest ... --alluredir ./allure-results then npx allure serve ./allure-results

TODO

  • Jest test cases may not work reliably across all auth modes and schemas yet. Treat Jest materialization as experimental and prefer Pytest for now.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published