Set up a Magnitude project and run an example
Install our test library
or see our demo repo if you don’t have a project to try it on
Initialize Magnitude
tests/magnitude
with:magnitude.config.ts
: Magnitude test configuration fileexample.mag.ts
: An example test fileConfigure LLM
ANTHROPIC_API_KEY
environment variable. Sonnet 4 will be used by default. See LLM Configuration for more details.*.mag.ts
pattern. If the agent finds a problem with your app, it will tell you what happened and describe the bug!
To run many tests in parallel, add -w <workers>
To learn more about different options for running tests see here.