LEAPP Testing Documentation

May 29, 2025 ยท View on GitHub

This documentation provides an overview of the testing processes and components used in the LEAPP project. It covers module testing, test data creation, and image management.

Table of Contents

  1. Testing Architecture Overview

    • Overview of the LEAPP testing components and workflow
    • Description of key features and future considerations
  2. Creating Module Test Cases

    • Detailed guide on using the make_test_data.py script
    • Process of generating test data for LEAPP modules
  3. Testing Modules

    • Instructions for running tests on LEAPP modules using the test_module.py script
    • Explanation of test execution, result collection, and golden file testing
  4. Documenting Conditional Logic & Coverage

    • How to use admin/test/metadata/conditional_behaviors.json
    • Documenting module-specific conditions (e.g., iOS versions)
    • Linking conditions to test cases for coverage analysis
  5. Testing Module Outputs

    • Guide for verifying various output formats supported by modules using the test_module_output.py script
    • Process of manual output verification
  6. Adding New Images to the Manifest

    • Step-by-step guide for adding new test images to the project
    • Best practices for maintaining the image manifest
  7. File Path Analysis

Getting Started

To begin working with LEAPP testing:

  1. Review the Testing Architecture Overview to understand the overall structure.
  2. Follow the Creating Module Test Cases guide to generate test data for modules using the make_test_data.py script.
  3. Use the Testing Modules document to run tests with the test_module.py script and understand the golden file workflow.
  4. Refer to Documenting Conditional Logic & Coverage to understand how to document and track tests for specific module behaviors.
  5. Use Testing Module Outputs to verify report outputs with the test_module_output.py script.
  6. If you need to add a new test image, refer to Adding New Images to the Manifest.