Skip to main content

AI-powered test case generator CLI

Project description

FRIDAY - AI Test Case Generator

Auto Test Case Generator Banner

A Python-based tool that uses Google's Vertex AI and LangChain to automatically generate test cases from Jira/Github and Confluence documentation.

Features

  • 🤖 Leverages Google Vertex AI for test case generation
  • 📝 Pulls requirements from Jira tickets or github issue
  • 📚 Extracts additional context from Confluence pages
  • 🔄 Uses LangChain for prompt engineering and chain management
  • 💾 Use ChromaDb for Embeddings, vector search, document storage
  • { } Outputs structured test cases in JSON/MarkDown format

Prerequisites

  • Python 3.13+
  • Google Cloud Platform account with Vertex AI enabled
  • Jira and Confluence access credentials

Sequence diagram

Installation

  1. Clone the repository:
git clone https://github.com/dipjyotimetia/friday.git
cd friday
  1. Install dependencies:
chmod +x prerequisites.sh
./prerequisites.sh
poetry install
  1. Configure environment variables:
cp .env.example .env
# Edit .env with your credentials

Usage

Run the tool with:

# Install the cli
brew tap dipjyotimetia/friday
brew install friday

# Run interactive setup
friday setup

# Generate test cases from a Jira issue
friday generate --jira-key PROJ-123 --confluence-id 12345 -o test_cases.md

# Generate test cases from a GitHub issue 
friday generate --gh-issue 456 --gh-repo owner/repo --confluence-id 12345 -o test_cases.md

# Crawl multiple pages from same domain
friday crawl https://example.com --provider vertex --persist-dir ./my_data/chroma --max-pages 5

# # Crawl across different domains
friday crawl https://example.com --provider vertex --persist-dir ./my_data/chroma --max-pages 10 --same-domain false

# Show version
friday version

# Show help
friday --help
friday generate --help

Parameters

  • --jira-key: Jira issue key (required)
  • --confluence-id: Confluence page ID (optional)
  • --gh-issue: Github Issue key
  • --gh-repo: Github User/Repo
  • --output: Output file path for generated test cases (default: test_cases.json)

Example other repo

- 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.11.tar.gz (16.8 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.11-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: friday_cli-0.1.11.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for friday_cli-0.1.11.tar.gz
Algorithm Hash digest
SHA256 f2941263caea11e58500aa4ede07867ff06e0ea0d50e85cc1253c0fd6deec33e
MD5 9656465305f7437b523d57cc25047245
BLAKE2b-256 4f5556d42685be3d9a9e6028a52cc2960ecd157f333b2beee5f8e951a8ec3e5d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: friday_cli-0.1.11-py3-none-any.whl
  • Upload date:
  • Size: 21.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.0.1 CPython/3.12.3 Linux/6.8.0-1017-azure

File hashes

Hashes for friday_cli-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 847e637fdf0d65dafe8477d97b2ff2a7ef562208d1822242db4116a0933e3951
MD5 7f4a04434e7f4b2617f7d633e9440925
BLAKE2b-256 896f5e3aaf6ccb4b39d0f19eefa20e206d9a57d138432e33231210e5421bb52d

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