Skip to content

Revolutionize your CI workflow with AI-generated test cases, real-time execution, and smart reporting - all from your GitHub pull requests.

LambdaTest/lambdatest-ai-native-validation-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸš€ LambdaTest AI Cloud GitHub App Integration

LambdaTest Logo

Automate test case generation for your pull requests with AI-native testing

Install App Documentation Support


πŸ“‹ Table of Contents


🎯 Overview

The LambdaTest AI Cloud GitHub App revolutionizes your testing workflow by automatically generating comprehensive test cases for your pull requests. This intelligent integration analyzes your code changes and creates relevant automated tests, ensuring your applications are thoroughly tested before deployment.

🌟 Why Choose LambdaTest AI Cloud?

  • πŸ€– AI-Powered Test Generation: Automatically creates test cases based on your code changes
  • πŸ”„ Seamless Integration: Works directly with your GitHub pull requests
  • ⚑ Real-time Testing: Instant test execution and reporting
  • πŸ“ˆ Comprehensive Coverage: Supports UI, API, and cross-browser testing
  • 🎯 Smart Analysis: Understands your codebase and generates contextually relevant tests

πŸ“– Learn More: Discover why KaneAI is transforming test automation and how it addresses traditional testing challenges.


✨ Features

Feature Description Benefit
🧠 AI Test Generation Automatically generates test cases from PR changes Saves time and ensures comprehensive coverage
πŸ”„ Automated Execution Runs tests immediately after generation Instant feedback on code quality
πŸ“Š Detailed Reporting Provides comprehensive test reports Clear visibility into test results
🌐 Cross-browser Testing Tests across multiple browsers and devices Ensures compatibility across platforms
πŸ”— GitHub Integration Native GitHub App with PR comments Seamless workflow integration
πŸ“ˆ Scalable Testing Handles projects of any size Grows with your development needs

πŸš€ Quick Start

Prerequisites

  • βœ… GitHub Admin access to your repository
  • βœ… Active LambdaTest account
  • βœ… Deployed application URL for testing

Step 1: Install the GitHub App

Install LambdaTest App

  1. Navigate to the App: Click the button above or visit LambdaTest AI Cloud GitHub App

  2. Install the App:

    • Click "Install" or "Configure" if already installed
    • Select repositories (All repositories or specific ones)
    • Complete the installation process
  3. Authorize: Complete the authorization to link your GitHub account with LambdaTest

Step 2: Configure Your Repository

Create a configuration file at .lambdatest/config.yaml in your repository root:

# LambdaTest Configuration
# ========================

# Project and folder configuration
project_id: "your_project_id"
folder_id: "your_folder_id"

# Test Run configuration
assignee: 123456
environment_id: 78901

# Test URL for automation
test_url: "https://demo.lambdatestinternal.com/"

Step 3: Start Testing

Create a pull request and add a comment:

@LambdaTest Validate this PR

πŸŽ‰ That's it! The LambdaTest App will automatically analyze your changes and generate comprehensive test cases.


βš™οΈ Configuration

πŸ“ File Structure

your-repository/
β”œβ”€β”€ .lambdatest/
β”‚   └── config.yaml          # LambdaTest configuration
β”œβ”€β”€ src/                     # Your application code
└── README.md               # This file

πŸ”§ Configuration File

The .lambdatest/config.yaml file is the heart of your LambdaTest integration. It contains all the necessary settings for test generation and execution.


πŸ“– Usage Guide

🎯 Basic Usage

  1. Create a Pull Request with your code changes
  2. Add a Comment to trigger test generation:
    @LambdaTest Validate this PR
    # OR
    @LambdaTest Generate test cases
    # OR
    @kaneai Generate test cases
    
  3. Watch the Magic as LambdaTest:
    • Analyzes your code changes
    • Generates relevant test cases
    • Identifies similar existing test cases
    • Combines all tests for comprehensive coverage
    • Runs the complete test suite
  4. Review Results in the PR comments and LambdaTest dashboard

πŸ”„ Workflow Integration

graph LR
    A[Create PR] --> B[Add Comment]
    B --> C[LambdaTest Analyzes Code]
    C --> D[Generates Test Cases]
    D --> E[Identifies Similar Test Cases]
    E --> F[Combines All Tests]
    F --> G[Runs Tests]
    G --> H[Reports Results]
    H --> I[PR Updated with Results]
Loading

πŸ”§ Configuration Parameters

πŸ“š API Reference: All configuration IDs (project_id, folder_id, assignee, environment_id) can be found in the LambdaTest API Documentation. Use the Test Manager API endpoints to retrieve these values.

Parameter Description Required Example Type
project_id Your LambdaTest project identifier βœ… Yes "01K88GEM5X8BDHWWVY819YTYVA" String
folder_id Folder ID where tests will be organized βœ… Yes "01K88GFKKP1TDP3AYBP725VAPW" String
assignee User ID to assign test runs βœ… Yes 17398756 Number
environment_id Test environment configuration ID βœ… Yes 156989 Number
test_url URL of your deployed application βœ… Yes "https://demo.lambdatestinternal.com/" String

πŸ“Š How to Find Configuration Values

πŸ’‘ Pro Tip

For programmatic access to these values, use the LambdaTest API Documentation with Test Manager endpoints.

πŸ” Project ID & Folder ID

  1. Log into LambdaTest Dashboard
  2. Navigate to your project
  3. Copy the IDs from the URL or project settings
    URL: https://test-manager.lambdatest.com/project/01K88GEM5X8BDHWWVY819YTYVA
    Project ID: 01K88GEM5X8BDHWWVY819YTYVA
    
  4. API Method: Use GET /test-manager/projects endpoint to retrieve project and folder IDs programmatically

🎯 Basic Commands

# Generate test cases for the entire PR
@LambdaTest Generate test cases
@kaneai Generate test cases

πŸ“ Comment Examples

πŸ“‹ Click to see example PR comments
## πŸ§ͺ Test Generation Request

@LambdaTest Generate test cases
# OR
@kaneai Generate test cases

**Changes in this PR:**
- Added new user authentication flow
- Updated payment processing logic
- Modified UI components for better UX

**Test Requirements:**
- UI testing for new components
- API testing for authentication endpoints
- Cross-browser compatibility testing

βœ… Verification Steps

πŸ” Pre-deployment Checklist

  • βœ… .lambdatest/config.yaml file is committed to your repository
  • βœ… LambdaTest bot appears in your repository's integrations
  • βœ… All configuration parameters are correctly set
  • βœ… Test URL is accessible and working
  • βœ… LambdaTest account is properly linked

πŸ§ͺ Testing the Integration

  1. Create a Test PR with some code changes
  2. Add the Comment: @LambdaTest Generate test cases
  3. Wait for Response (usually 2-5 minutes)
  4. Check Results in PR comments and LambdaTest dashboard
  5. Verify Test Execution and review generated reports

🚨 Troubleshooting

Issue Solution
Bot doesn't respond Check if app is installed and authorized
Configuration errors Verify .lambdatest/config.yaml syntax
Test failures Check test URL accessibility and environment settings
Missing permissions Ensure GitHub Admin access for app installation

🀝 Contributing

We welcome contributions! Here's how you can help:

  1. πŸ› Report Issues: Found a bug? Create an issue
  2. πŸ’‘ Suggest Features: Have an idea? Start a discussion
  3. πŸ“ Improve Documentation: Help us make this README better
  4. πŸ”§ Submit PRs: Fix bugs or add features

πŸ“ž Support

πŸ†˜ Need Help?

πŸ”— Useful Links


Made with ❀️ by the LambdaTest Team

LambdaTest GitHub

Automate your testing workflow with AI-powered test generation

About

Revolutionize your CI workflow with AI-generated test cases, real-time execution, and smart reporting - all from your GitHub pull requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •