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
Collaborator

@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
Collaborator 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
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