prole/tests/shellspec/.vendor/shellspec-0.28.1/docs/directory_structure.md
chrisfu 909e92109e Refactor shell layout; add shellspec + authority
- Introduce lib/shell helpers and keep etc/* scripts thin via compatibility shims

- Move Kerberos validation to scripts/validation/check_kerberos.sh and update callers

- Add deterministic shellspec unit tests under tests/shellspec/ and wire Maven to run them

- Add minimal Spring Boot authority module with startup + /health endpoint and Maven wiring

- Document the new layout in docs/layout.md

Co-authored-by: Junie <junie@jetbrains.com>
2026-03-13 09:19:56 -07:00

1.3 KiB

Project directory structure

Example directory structure and options

Separate a separate directory for each utility and test it with test_spec.sh. The execution directory for testing is where the specfile is located.

<PROJECT-ROOT>
├─ .shellspec
│
├─ script1/
│   ├─ script1.sh
│   └─ test_spec.sh
│
├─ script2/
│   ├─ script2.sh
│   └─ test_spec.sh
│
├─ spec/
│   ├─ spec_helper.sh
│   │        :
# .shellspec
--default-path "**/test_spec.sh"
--execdir @specfile

Separate a separate directory for each utility and test it with spec/*_spec.sh. The test execution directory is where the script is located.

<PROJECT-ROOT>
├─ .shellspec
│
├─ script1/
│   ├─ .shellspec-basedir
│   ├─ bin/
│   │   ├─ script1.sh
│   │   │    :
│   └─ spec/
│        ├─ script1_spec.sh
│        │    :
│
├─ script2/
│   ├─ .shellspec-basedir
│   ├─ bin/
│   │   ├─ script2.sh
│   │   │    :
│   └─ spec/
│        ├─ script2_spec.sh
│        │    :
│
├─ spec/
│   ├─ spec_helper.sh
│   ├─ support/
│   │        :
# .shellspec
--default-path "**/spec"
--execdir @basedir/bin`