Skip to main content

AI-powered test case generator CLI

Project description

FRIDAY - AI Test Case Generator

Auto Test Case Generator Banner

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

Sequence Diagram

⚡️ Quick Start

  1. Install via Homebrew:
brew tap dipjyotimetia/friday https://github.com/dipjyotimetia/FRIDAY
brew install friday
  1. Run setup:
friday setup
  1. 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

  1. Clone and setup:
git clone https://github.com/dipjyotimetia/friday.git
cd friday
chmod +x prerequisites.sh
./prerequisites.sh
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

friday_cli-0.1.30.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

friday_cli-0.1.30-py3-none-any.whl (19.3 kB view details)

Uploaded Python 3

File details

Details for the file friday_cli-0.1.30.tar.gz.

File metadata

  • Download URL: friday_cli-0.1.30.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

Hashes for friday_cli-0.1.30.tar.gz
Algorithm Hash digest
SHA256 80030f7bc2d26df58cdce3d78f6a801733ad9c918061db8e78ed4ee62338f482
MD5 41884c5d5c5328f20c1616f8f7688aa1
BLAKE2b-256 8222fd5fc179576f1a3da38a2ecc136c1c3b6a70c9e5090f0499bc57f3531f3a

See more details on using hashes here.

File details

Details for the file friday_cli-0.1.30-py3-none-any.whl.

File metadata

  • Download URL: friday_cli-0.1.30-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

Hashes for friday_cli-0.1.30-py3-none-any.whl
Algorithm Hash digest
SHA256 2ca3cf2963edaa9d4a7e230f3afe90687107dc7443307dee40e6023e2718b138
MD5 306e6da280d8d45c6e9e6ada564cca96
BLAKE2b-256 a94a3b8697760a6ec248a79836b67a809d111c084d0d0694eecb42b979da6594

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page