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.10.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.10-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: friday_cli-0.1.10.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.10.tar.gz
Algorithm Hash digest
SHA256 499f08dd6b6fcbd3eeb8c9ce1df4bcfab698328e3aefe15618bd60db0ef37229
MD5 c4b1fa89304af7c6ffb2a5d1f6bc9de2
BLAKE2b-256 99555158916860a0cd9b982de21706e858b1ef3e754cfcbd227180658a5fde4e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: friday_cli-0.1.10-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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 7f31d19224a0f3318e6f8dac6f1c0e449d759ed809540d16b17ba2f280f30dc6
MD5 f8034084227a630e9b068b1bb2295bcb
BLAKE2b-256 4d78b14f524d4294b6f161b81a8d9821efcc066f0b55410c3e31b81267a12666

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