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

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: friday_cli-0.1.17.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.17.tar.gz
Algorithm Hash digest
SHA256 447e6f74a52b82a5217c317ac5460a2965a066122ecc3ead84f05df03e64b10a
MD5 d1804d525a6f1a65d597fc34ae2febb6
BLAKE2b-256 bdeb562226f216a174dd90deb9555d7e720b6ec8e8daa9e22937dc0af4ab4f29

See more details on using hashes here.

File details

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

File metadata

  • Download URL: friday_cli-0.1.17-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.17-py3-none-any.whl
Algorithm Hash digest
SHA256 4b705ce410df8396d81f2b619cd95b6d983de28677d2e5b5692b6c1573e437cb
MD5 acc553494fc4a805243b436f026b03e4
BLAKE2b-256 1995cfe9e40f735125ea8285f1dce2c715140caa74e1f45ff5e3f32568cbf886

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