Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve testing #314

Merged

Conversation

vdbe
Copy link
Contributor

@vdbe vdbe commented Sep 15, 2024

  • fail tests if test scripts exit's with none 0 code
  • don't expand option by default
  • check all if colors are expanded
  • check if module text is not expanded

Comment on lines +13 to +17
print_option @catppuccin_status_application | grep -q "$application_text" ||
echo "@catppuccin_status_application expanded @catppuccin_application_text more than once"

print_option @catppuccin_status_application | grep -q "@thm_" &&
echo "@catppuccin_status_application did not expand all colors"
Copy link
Contributor Author

@vdbe vdbe Sep 15, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe add a die function in helpers that takes a msg and exit's with 1?

currently it fails on diff with expected

- fail tests if test scripts exit's with none 0 code
- don't expand option by default
- check all if colors are expanded
- check if module text is not expanded
@vdbe vdbe force-pushed the chore/tmux-native/improve-testing branch from 58f1029 to 76a7b0c Compare September 15, 2024 20:46
@vdbe vdbe requested a review from kjnsn September 15, 2024 20:48
@kjnsn kjnsn merged commit d428900 into catppuccin:tmux-native Sep 16, 2024
2 checks passed
kjnsn added a commit that referenced this pull request Sep 30, 2024
refactor!: Rewrite to use native tmux configuration (#306)


Co-authored-by: vdbe <[email protected]>

* Apply tmux.tera and comment suggestions from code review

* Cleanup test harness

* Make tests work for multiple lines

* Add a test helper script

* Add status line theming

* Fix shellcheck errors

* Fix test errors

---------

Co-authored-by: vdbe <[email protected]>

* Use the full pallete to allow for user customisation

* First working tmux-native config

* Follow the style guide and add popup styling

* fix: `thm_gray`` -> `thm_surface_0`` (#312)

Color names were replaced with upstream names.

* Make the status line application module work

* Fix tests

* Add test for the application module

* chore: replace `@message_background` with an hidden variable (#313)

* Only set menu styling and popup styling on versions >= 3.4

* Always run the test tmux server under bash

* Convert session and load modules

* fix: test application use placeholder

Replace the commands with a known placeholder, this makes the tests
independent of a users preferred shell.

* chore: improve testing (#314)

- fail tests if test scripts exit's with none 0 code
- don't expand option by default
- check all if colors are expanded
- check if module text is not expanded

* Feat/tmux native/status modules (#315)

* chore: improve testing

- fail tests if test scripts exit's with none 0 code
- don't expand option by default
- check all if colors are expanded
- check if module text is not expanded

* feat(status): more modules

* Add style for window statuses

* Format readme.md with markdownlint

* Add slanted and rounded options for the window status

* Fix the application module test to ensure it works on macos

* Port window status separators and colours

* Remove dead code that is no longer used

* Expand installation instructions in the readme

* feat: more modules

* Support pane styling

* update pane styling information and colour values in the readme

* Add all window styling options

* Connect status separators when enabled

* Update readme regarding modules

* fix(session): add missing #

* fixup! fix(session): add missing #

* fix(status): works for all example/default configs

* feat(status): middle separator

* feat(status/window): icons (#320)

* feat(status/window): icons

* chore: update icon order comments

* Fix the status module builder and tests

* fix: remove forgotten misplaced line

* Update the docs regarding custom modules and tidy up some formatting

* Ensure the tmux server is destroyed when the test exits

* fix(status): set status-left/right-length correctly

* docs: update readme

* fix: pane-format (#322)

* fix(window): ensure the window styling options work

* Fix the example configs in the readme

---------

Co-authored-by: vdbe <[email protected]>
Co-authored-by: vdbewout <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants