Skip to content

test: improve table tests based on reported issues #593

@bashbunni

Description

@bashbunni

We want to replace the current table rendering with lipgloss' table in the future. It would be great to create some test cases given reported issues in table. Check out the v0.20.0 milestone for some examples.

You can use this test as a reference to get started
https://github.com/charmbracelet/bubbles/blob/master/table/table_test.go#L112

x/golden will create a new golden file for your test when you run the test with the -update flag. E.g. go test -run "TestTableAlignment/No border" -update. You can use this to create golden files from your got value.

Other examples testing interactivity:

Other examples with golden files:

If anything is unclear, don't hesitate to ping me 😄

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions