The Shortest installation process is divided into three key steps:
- Installation of dependencies: Install packages via npm/pnpm/yarn (development dependencies recommended):
npm install -D @antiwork/shortest - Project Configuration::
- In .gitignore add the
.shortest/Directory Avoidance Submit Test Cache - establish
shortest.config.tsConfiguration file to be included:headless: Whether to run in headless modebaseUrl: Base address of the system under testanthropicKey: Claude API key (recommended to be injected via environment variable)
- In .gitignore add the
- Test Catalog Preparation::
- usage agreement
**/*.test.tsPattern Matching Test File - Sample test files need to be imported
@antiwork/shortest(used form a nominal expression)shortestmethodologies
- usage agreement
Note that the runtime requires a Node.js environment (v16+ recommended), which can be configured for the first time with thenpx shortestcommand to verify the installation.
This answer comes from the articleShortest: an AI automated testing tool that uses natural language for end-to-end testingThe































