Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wuttinanhi/aitestgen
Generate web E2E tests from natural language prompt.
https://github.com/wuttinanhi/aitestgen
ai automation generator puppeteer selenium test-generation test-generator testcase testgen testgenerator testing
Last synced: about 1 month ago
JSON representation
Generate web E2E tests from natural language prompt.
- Host: GitHub
- URL: https://github.com/wuttinanhi/aitestgen
- Owner: wuttinanhi
- License: mit
- Created: 2024-10-03T13:05:14.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-11-30T09:51:28.000Z (about 1 month ago)
- Last Synced: 2024-11-30T10:29:54.234Z (about 1 month ago)
- Topics: ai, automation, generator, puppeteer, selenium, test-generation, test-generator, testcase, testgen, testgenerator, testing
- Language: TypeScript
- Homepage: https://github.com/wuttinanhi/aitestgen
- Size: 749 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aitestgen
Generate test suites from natural language descriptions.
A command-line tool that leverages AI to generate test cases from natural language prompts automatically.
This tool helps developers quickly create comprehensive test suites by describing what they want to test in plain English.## Features
- Generate Puppeteer tests
- Generate Selenium tests## Requirements
- [Node.js](https://nodejs.org/en)
## Installation
```bash
yarn add -g aitestgen
```## Usage
Set OpenAI key
```bash
export OPENAI_API_KEY=""
```Generate testsuite from test prompt file ([todo.xml](examples/testprompts/todo.xml))
```bash
aitestgen gen -f examples/testprompts/todo.xml
```the generated output will be saved at `todo.test.ts`
## Choosing a Model
Currently, the best-performing model for test generation is **gpt-4o-mini**.
We are still searching for the ideal Ollama model for a self-hosted solution.## Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
### Development Setup
1. Clone the repository
```bash
git clone https://github.com/wuttinanhi/aitestgen
```2. Install dependencies
```bash
yarn install
```3. Run project tests
```bash
yarn test
```4. Link this package to use locally
```bash
yarn link
```### Yarn scripts
| Option | Description |
|--------|-------------|
| `start` | Start the program. |
| `test` | Run project tests |
| `lint` | Lint codebase |## License
MIT
## Author
wuttinanhi
## Support
If you encounter any issues or have questions, please file an issue on the GitHub repository.