Getting started
Requirements
- Node.js 18+ and npm
- Python 3.9+ (for Pytest)
- VS Code (latest)
- AWS CLI (for IAM flows) with configured profiles
- (Optional) Allure:
npm i -D allure-commandline
pip install allure-pytest
Build
npm i
npm run watch # dev loop (used by VS Code debug)
# or
npm run build
If the VS Code debugger says “Waiting for preLaunchTask ‘watch’…”, ensure npm run watch exists and TypeScript compiles.
Install & set up
-
Install the extension in VS Code.
-
Create a folder with schema.graphql or schema.introspection.json.
-
(Optional) Configure LLM provider in settings: appsyncTestGen.llm.*.
-
(Optional) Configure AWS: appsyncTestGen.connection.region/profile for IAM flows.
First run
-
Fetch schema (API Key / IAM / Cognito).
-
(Optional) Fetch resolvers using IAM.
-
Build contexts from the schema.
-
Generate test plans (LLM).
-
Materialize tests (Pytest/Jest).
-
Run tests and (optionally) serve Allure.
Allure (Pytest)
pip install allure-pytest
pytest contexts --alluredir ./allure-results
npx allure serve ./allure-results