Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Claude Test Examples

This directory contains practical examples to help you get started with claude-test.

Quick Start Example

Follow these steps to run the example tests:

  1. Initialize claude-test in this directory:

    cd examples
    claude-test init
  2. Copy example files:

    # Copy test cases
    cp test-cases/* .claude/test-cases/
    
    # Copy step libraries  
    cp steps/* .claude/steps/
    
    # Copy test suites
    cp test-suites/* .claude/test-suites/
    
    # Copy environment files
    cp .env.* .
  3. Run example tests:

    # Run a single test
    /run-yaml-test file:login.yml env:dev
    
    # Run smoke tests
    /run-yaml-test tags:smoke env:dev
    
    # Run a complete test suite
    /run-test-suite suite:e-commerce.yml env:dev
  4. View test reports:

    /view-reports-index

Example Structure

  • test-cases/ - Individual YAML test cases
  • steps/ - Reusable step libraries
  • test-suites/ - Test suite configurations
  • .env.* - Environment configurations

Notes

  • These examples use placeholder URLs and credentials
  • Modify the .env files to match your actual test environment
  • The examples demonstrate best practices for organizing tests
  • All examples include comprehensive documentation and comments