Skip to content

feat: Migrate E2E test runner to Python with HTML report generation#5

Merged
abhraina-aws merged 53 commits intoabhraina-aws:testsfrom
abhishekanne:tests
Sep 16, 2025
Merged

feat: Migrate E2E test runner to Python with HTML report generation#5
abhraina-aws merged 53 commits intoabhraina-aws:testsfrom
abhishekanne:tests

Conversation

@abhishekanne
Copy link

🚀 Overview

Migrated the E2E test framework from shell scripts to a comprehensive Python-based test runner with advanced reporting capabilities.

✨ Key Features

Python Test Runner (run_tests.py)

  • Feature-based test execution with configurable categories
  • Real-time progress tracking with per-test feedback
  • Parallel test suite support (sanity/regression)
  • Individual test result parsing from cargo output
  • System information collection (OS, Q CLI version)

HTML Report Generation

  • Interactive HTML reports with collapsible sections
  • Visual success rate charts and statistics
  • Detailed test output capture with syntax highlighting
  • Test categorization by feature groups
  • Timestamped reports in dedicated reports/ folder

Enhanced Test Structure

  • Test descriptions added to few test cases for better reporting
  • Improved output formatting with emojis and status indicators
  • **Project files restructuring ** moved to tests to respective mods

📊 Reporting Capabilities

  • Success rate visualization with pie charts
  • Feature-wise breakdown of test results
  • Individual test output with full cargo logs
  • System environment details for debugging
  • JSON and HTML export formats

📁 Files Changed

  • Added: run_tests.py - New Python test runner
  • Enhanced: All test files with descriptions and improved formatting
  • Updated: Cargo.toml with feature organization
  • Added: .gitignore for reports and build artifacts

🧪 Testing

  • ✅ All existing tests pass with new runner
  • ✅ HTML reports generate successfully
  • ✅ Feature categorization group (directory) wise and sanity ,regression works correctly

@abhishekanne
Copy link
Author

@abhraina-aws The code is under testing for stability.

shreyabhagat1 and others added 24 commits September 1, 2025 18:36
…ittent /quit issue, fix MCP failures, and add compact feature tests
- Introduced `q_subcommand` feature in Cargo.toml
- Implemented functions for starting and executing Q subcommands in lib.rs
- Added tests for `q chat`, `q doctor`, and `q translate` commands
- Updated all_tests.rs to include the new q_subcommand tests
- Replaced `start_q_subcommand` and `read_session_response` with `execute_q_subcommand` and `execute_q_subcommand_with_stdin` for improved command execution and response handling.
- Added new tests for `q mcp` subcommands, verifying help commands and functionality.
- Enhanced existing test descriptions for clarity and consistency.
- Updated test output messages in various test files to wrap command names in <code> tags for better readability.
@abhraina-aws abhraina-aws merged commit ec5d631 into abhraina-aws:tests Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants