Skip to content

test(bling): add bats coverage for bling.sh - #629

Merged
castrojo merged 1 commit into
mainfrom
feat/test-bling-sh
Jun 11, 2026
Merged

test(bling): add bats coverage for bling.sh#629
castrojo merged 1 commit into
mainfrom
feat/test-bling-sh

Conversation

@castrojo

Copy link
Copy Markdown
Contributor

Summary

Adds tests/test_bling_sh.bats for bling.sh itself (distinct from test_bling.bats which tests the ublue-bling installer).

bling.sh is sourced in every interactive bash and zsh session — it sets up aliases for eza/bat/ugrep and initializes direnv/starship/zoxide/mise.

Test cases

  • BLING_SOURCED guard prevents double-sourcing
  • eza aliases defined when eza is on PATH, absent when not
  • bat alias defined when bat is on PATH, absent when not
  • ugrep/ug aliases defined when ug is on PATH, absent when not
  • Each initializer (direnv, starship, zoxide, mise) invoked when binary exists
  • Graceful degradation when tools are missing — no aliases or initializers set

CI changes

  • Adds Run bats (bling.sh) step to unit-tests.yml

Notes

unit-tests.yml is also modified by other test PRs from this sprint. Changes are additive; minor rebases may be needed.

Closes #575

Closes #575

Assisted-by: Claude Sonnet 4.6 via GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@coderabbitai

coderabbitai Bot commented Jun 11, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@castrojo, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 19 minutes and 33 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: cacb04b0-5123-4fb4-810e-c006ba3b46a7

📥 Commits

Reviewing files that changed from the base of the PR and between a717784 and 40904f6.

📒 Files selected for processing (2)
  • .github/workflows/unit-tests.yml
  • tests/test_bling_sh.bats
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/test-bling-sh

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@castrojo
castrojo merged commit c1bee8d into main Jun 11, 2026
8 checks passed
@castrojo
castrojo deleted the feat/test-bling-sh branch June 11, 2026 11:31
@castrojo castrojo added 4-review A pull request is awaiting review. and removed area/bling labels Jul 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4-review A pull request is awaiting review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[quality] bling.sh has zero test coverage — sourced in every interactive shell

1 participant