tmux-python / tmux-python/tmuxp

Tests: Build a test suite for layouts

Open
#815 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
4.6k
Forks
248
Avg merge
2h 13m
Merged PRs (30d)
1

Description

We need to build a robust test suite to ensure these render perfectly:

  • Preset layouts
    • even-horizontal
      Panes are spread out evenly from left to right across the window.

    • even-vertical
      Panes are spread evenly from top to bottom.

    • main-horizontal

      A large (main) pane is shown at the top of the window and the remaining panes are spread from left to right in the leftover space at the bottom. Use the main-pane-height window option to specify the height of the top pane.

    • main-vertical

      Similar to main-horizontal but the large pane is placed on the left and the others spread from top to bottom along the right. See the main-pane-width window option.

    • tiled
      Panes are spread out as evenly as possible over the window in both rows and columns.

  • Normal layouts, e.g. bb62,159x48,0,0{79x48,0,0,79x48,80,0}

CC: #800 #793 #667

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Locate the layout-rendering entry points and any existing tests in the Python project. Add coverage for even-horizontal, even-vertical, main-horizontal, main-vertical, tiled, and a normal layout such as the example in the issue, including the main-pane height and width options. Done means the suite verifies the documented pane placement and spacing for each layout.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, testing
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.