How test-design-org/general-predicate-testing works
Main Components
a. Core Components:
• GPT Common Library (Core Logic)
• Parser Module
• IR (Intermediate Representation) Module
• Graph Reduction Module
• Test Case Generation System
• BVA (Boundary Value Analysis) Module
b. Interface Components:
• CLI Interface
• Web Frontend (WASM-based)
• Documentation System (Docusaurus)
Component Relationships
Top Layer:
• User Interfaces (CLI and Web Frontend)
• Documentation System
Middle Layer:
• Parser System
• IR System
• Test Generation System
Bottom Layer:
• Graph Reduction Algorithms
• Core Utilities and Common Functions
Detailed Component Breakdown
GPT Common (Core):
┌─ Parser Module
• AST
• Condition Parser
• Feature Parser
• If Statement Parser
• IR Module
• AST to IR Converter
• IR to N-tuple Converter
• Graph Reduction
• Least Losing Components
• Least Losing Edges
• Monke Algorithm
• Test Generation
• Test Case Generator
• Test Value Generator
Key Interactions to Highlight
• How the GPT language files (.gpt) flow through the system:
1. Input through CLI/Web Frontend
2. Parsing into AST
3. Conversion to IR
4. Graph reduction processing
5. Test case generation
6. Results display
Additional Elements
• Version/build workflow indicators
• Integration with external tools (cargo-instruments for profiling)
• WASM compilation boundary for web frontend
Technical Details to Note
• Rust-based architecture
• WASM compilation for frontend
• Documentation generation pipeline
• CI/CD workflow integration
Remember to include:
• File format support (.gpt)
• Algorithm selection options
• Test case visualization components
• Error handling flow
• Documentation generation pipeline