Reddit Programming – Telegram
Reddit Programming
211 subscribers
1.22K photos
125K links
I will send you newest post from subreddit /r/programming
Download Telegram
[Python] Orchestro CLI – Testing framework for CLI/TUI applications with parallel execution and AI-powered test generation
https://www.reddit.com/r/programming/comments/1p05io9/python_orchestro_cli_testing_framework_for_clitui/

<!-- SC_OFF -->After struggling with Expect and other terminal testing tools, I built Orchestro CLI to bring modern testing practices to command-line applications. What it does: - Write tests in YAML (no noscripting required) - Parallel test execution (5.25x faster than sequential) - Intelligent test generation from source code using AST analysis - Snapshot testing for terminal output - REST/GraphQL API for integration with your tools - JUnit XML reports for CI/CD pipelines Example test: name: Test Python REPL command: python steps: - send: "2 + 2" expect: "4" - send: "import sys" - send: "sys.version_info.major" expect: "3" The intelligence feature analyzes your CLI source code and generates test scenarios automatically. Point it at a Click or argparse-based CLI, and it creates tests for each command/subcommand. Performance: 50 tests that took 10 minutes now run in under 2 minutes with parallel execution. Production ready: 550 tests, 63% coverage, used in real CI/CD pipelines. Open source (MIT): https://github.com/jonthemediocre/orchestro-cli Install: pip install orchestro-cli Happy to answer questions about the architecture, AST analysis, or parallel execution system! <!-- SC_ON --> submitted by /u/Jonthemediocre (https://www.reddit.com/user/Jonthemediocre)
[link] (https://github.com/jonthemediocre/orchestro-cli) [comments] (https://www.reddit.com/r/programming/comments/1p05io9/python_orchestro_cli_testing_framework_for_clitui/)