Sign up to save tools and stay up to date with the latest in AI
bg
bg
1

GitHub - anti-work/shortest: QA via natural language AI tests

Dec 23, 2024 - github.com
The markdown data provides a comprehensive guide on using "Shortest," an AI-powered natural language end-to-end testing framework. It highlights key features such as integration with the Anthropic Claude API, Playwright, and GitHub with 2FA support. The installation can be done using npm, pnpm, or yarn, and tests can be run using npx, pnpm, or yarn commands. The guide includes instructions for setting up the configuration file with the Anthropic API key, writing tests, using callback functions for additional assertions, and employing lifecycle hooks for code execution before and after tests. It also covers running tests in different modes and setting up GitHub 2FA for authentication tests.

The document further details the environment setup required for using Shortest, including necessary environment variables and CI/CD pipeline integration. It provides a local development setup guide, listing prerequisites like React and Next.js versions, and steps for cloning the repository, installing dependencies, and configuring services such as Clerk, Vercel Postgres, Anthropic, Stripe, and GitHub OAuth. The guide concludes with instructions for running the application, building the Shortest package locally, setting up the CLI for local development, and testing the CLI locally.

Key takeaways:

  • Shortest is an AI-powered natural language end-to-end testing framework built on Playwright, with GitHub integration and 2FA support.
  • Installation can be done using npm, pnpm, or yarn, and tests can be run using npx, pnpm, or yarn commands.
  • It supports lifecycle hooks and callback functions for additional assertions and logic after test execution.
  • Environment setup requires configuration of services like Clerk, Vercel Postgres, Anthropic, Stripe, and GitHub OAuth for local development.
View Full Article

Comments (0)

Be the first to comment!