reubeno / brush

bash/POSIX-compatible shell implemented in Rust
MIT License
26 stars 4 forks source link

Experiment: try to run interactive tests with Alacritty #250

Open 39555 opened 3 weeks ago

39555 commented 3 weeks ago

WIP. I've connected expectrl to the Alacritty terminal. It can run any command with reedline backend, for example the test run_pipeline_interactively, but the command output is somehow messed up with OSC sequences and prompts, so precise control how it is done in Session::exec_output("jobs") is not possible for now

github-actions[bot] commented 3 weeks ago

Performance Benchmark Report

Benchmark name Baseline (μs) Test/PR (μs) Delta (μs) Delta %
expand_one_string 3.41 μs 3.41 μs 0.00 μs ⚪ Unchanged
instantiate_shell 60.40 μs 60.32 μs -0.08 μs ⚪ Unchanged
instantiate_shell_with_init_scripts 30484.21 μs 30795.66 μs 311.45 μs ⚪ Unchanged
parse_bash_completion 2820.39 μs 2817.26 μs -3.13 μs ⚪ Unchanged
parse_sample_script 4.22 μs 4.33 μs 0.11 μs 🟠 +2.68%
run_echo_builtin_command 89.21 μs 90.87 μs 1.66 μs 🟠 +1.86%
run_one_builtin_command 107.98 μs 109.51 μs 1.53 μs ⚪ Unchanged
run_one_external_command 1962.60 μs 1960.88 μs -1.71 μs ⚪ Unchanged
run_one_external_command_directly 1007.28 μs 1004.12 μs -3.15 μs ⚪ Unchanged

Code Coverage Report: Only Changed Files listed

Package Base Coverage New Coverage Difference
brush-core/src/shell.rs 🟢 77.73% 🟢 77.87% 🟢 0.14%
Overall Coverage 🟢 73.79% 🟢 73.8% 🟢 0.01%

Minimum allowed coverage is 70%, this run produced `73.8%``