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/)
What if everything was "Async", but nothing needed "Await"? -- Automatic Concurrency in Par
https://www.reddit.com/r/programming/comments/1p0goii/what_if_everything_was_async_but_nothing_needed/

<!-- SC_OFF -->I made a new video, showcasing and explaining the "automatic concurrency" in the Par programming language (https://github.com/faiface/par-lang)! I think this is the first time I actually manage to convey this unusual, but absolutely foundational feature of my language. In the video, I walk through a "concurrent downloader" application, visualize how it's put together, and explain how Par's concurrent evaluation makes it all work. I'm very curious to hear what you think! And if you don't know, Par is an innovative (and WIP) programming language with linear types, duality, automatic concurrency, and more. Yesterday's discussion in r/ProgrammingLanguages (https://www.reddit.com/r/ProgrammingLanguages): https://www.reddit.com/r/ProgrammingLanguages/comments/1ozlvuw/what_if_everything_was_async_but_nothing_needed/ <!-- SC_ON --> submitted by /u/faiface (https://www.reddit.com/user/faiface)
[link] (https://youtu.be/tpICs7uG3n8) [comments] (https://www.reddit.com/r/programming/comments/1p0goii/what_if_everything_was_async_but_nothing_needed/)