maelstrom-software / maelstrom

Maelstrom is a fast Rust, Go, and Python test runner that runs every test in its own container. Tests are either run locally or distributed to a clustered job runner.
https://maelstrom-software.com/
Apache License 2.0
600 stars 11 forks source link

The test runner viewport should grow and shrink as necessary #393

Open nfachan opened 3 months ago

nfachan commented 3 months ago

Use Cases

Initially, when there isn't much to output, or when running just a few tests, the viewport shouldn't grow too large.

During a large test run, the viewport should grow to take up the whole screen as necessary, or maybe the whole screen minus one lines.

At the end of a long test run, the viewport should shrink down again.

Acceptance Criteria

Implementation Considerations

Definition of Done

bobbobbio commented 2 months ago

To be clear, this must depend the ability to resize the inline viewport https://github.com/ratatui/ratatui/issues/984

jkelleyrtp commented 2 months ago

fwiw if you use the crossterm backend you can just swap the terminal instance out with a new one of a different viewport size which will mimic resizing the viewport

nfachan commented 2 months ago

fwiw if you use the crossterm backend you can just swap the terminal instance out with a new one of a different viewport size which will mimic resizing the viewport

Thanks for the idea!