AI-powered test case generator CLI
Project description
FRIDAY - AI Test Case Generator
An AI-powered test case generator that leverages Google Vertex AI and LangChain to automatically create test cases from Jira/GitHub issues and Confluence documentation.
🚀 Features
- Generate test cases using Google Vertex AI
- Extract requirements from Jira tickets or GitHub issues
- Integrate context from Confluence pages
- Process data using LangChain's prompt engineering
- Store and search documents using ChromaDB vectorization
- Export test cases in JSON or Markdown format
📋 Prerequisites
- Python 3.12+
- Google Cloud Platform account with Vertex AI enabled
- Jira/GitHub and Confluence access credentials
🔄 Architecture
⚡️ Quick Start
- Install via Homebrew:
brew tap dipjyotimetia/friday
brew install friday
- Run setup:
friday setup
- Generate test cases:
# From Jira
friday generate --jira-key PROJ-123 --confluence-id 12345 -o test_cases.md
# From GitHub
friday generate --gh-issue 456 --gh-repo owner/repo --confluence-id 12345 -o test_cases.md
🛠 Manual Installation
- Clone and setup:
git clone https://github.com/dipjyotimetia/friday.git
cd friday
chmod +x prerequisites.sh
./prerequisites.sh
- Configure environment:
cp .env.example .env
# Add your credentials to .env
📖 Usage Options
Web Crawler
# Crawl single domain
friday crawl https://example.com --provider vertex --persist-dir ./my_data/chroma --max-pages 5
# Crawl multiple domains
friday crawl https://example.com --provider vertex --persist-dir ./my_data/chroma --max-pages 10 --same-domain false
Command Reference
friday --help # Show all commands
friday version # Display version
friday generate --help # Show generation options
Parameters
--jira-key: Jira issue key--confluence-id: Confluence page ID (optional)--gh-issue: GitHub issue number--gh-repo: GitHub repository (format: owner/repo)--output: Output file path (default: test_cases.json)
🔧 GitHub Action
- uses: dipjyotimetia/friday@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
confluence_id: "optional-confluence-id"
💻 Development
# Run tests
poetry run pytest tests/ -v
# Format code
poetry run ruff format
MIT License
Copyright (c) 2025 Dipjyoti Metia
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file friday_cli-0.1.31.tar.gz.
File metadata
- Download URL: friday_cli-0.1.31.tar.gz
- Upload date:
- Size: 15.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
82557dc4084fc8a021371729859a0d908fbb7f84e3e364f7b1f340b19846f3c0
|
|
| MD5 |
f2a3bde98a07cbab86a6776b33a29b7a
|
|
| BLAKE2b-256 |
05cb6ed191449620be4d73450c25b39b026947f07d5d6e2cc90fda45448cb276
|
File details
Details for the file friday_cli-0.1.31-py3-none-any.whl.
File metadata
- Download URL: friday_cli-0.1.31-py3-none-any.whl
- Upload date:
- Size: 19.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1020-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ec4b05c4faa2302c10fb1c772c32e37493aefe0ff87b426584b21a15de8e060
|
|
| MD5 |
e222347f12eef4f96343b1a5d7b217b2
|
|
| BLAKE2b-256 |
487e1f528e7ac1b197fd073bf0c9a925121582476fc28a4b1533820dda2a9847
|