View on GitHub

HomeSetup

HomeSetup simplifies terminal customization by offering seamless cloud integration for dotfiles, packages, and configurations, enhancing productivity and command line experiences without complex frameworks.

Download this project as a .zip file Download this project as a tar.gz file

HomeSetup Developer Handbook

Applications handbook

Table of contents

Tests

“tests”

usage: __hhs tests

Purpose

Run all HomeSetup automated tests.

Returns

0 if all tests ran successfully; non-zero otherwise.

Examples

__hhs tests

Output

[17:44:53] Running HomeSetup bats tests

  |-Bats : vBats 1.10.0
  |-Bash : vGNU bash, version 3.2.57(1)-release (x86_64-apple-darwin23)
  |-User : runner

[hhs-aliases.bats] Running tests 1 to 4

 √ PASS 1 when-invoking-with-help-option-then-should-print-usage-message
 √ PASS 2 when-adding-non-existent-valid-alias-then-should-add-it
 √ PASS 3 when-removing-an-invalid-alias-then-should-raise-an-error
 √ PASS 4 when-removing-an-existing-alias-then-should-remove-it
...
...

“color-tests”

usage: __hhs color-tests

Purpose

Run all terminal color palette tests.

Returns

0 if all color tests ran successfully; non-zero otherwise.

Examples

__hhs color-tests

Output

[17:53:59] Running HomeSetup color palette test

  |-Terminal : xterm-256color
  |-Terminal Program : Apple_Terminal

  BLACK     RED   GREEN  ORANGE    BLUE  PURPLE    CYAN    GRAY   WHITE  YELLOW  VIOLET

--- 16 Colors Low

C16-30 C16-31 C16-32 C16-33 C16-34 C16-35 C16-36 C16-37

--- 16 Colors High

C16-90 C16-91 C16-92 C16-93 C16-94 C16-95 C16-96 C16-97
...
...