Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,8 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install bats-core
run: |
sudo apt-get update
sudo apt-get install -y bats
- name: Setup Bats
uses: bats-core/bats-action@e412797c46257a2dbf3775f6f6010b33ee6cb99f # v3.0.1

- name: Run all bats tests
run: bats tests/formats/ tests/scripts/
3 changes: 2 additions & 1 deletion tests/formats/test-comment-edge-cases.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Verifies that emojis, code blocks, non-ASCII text, markdown formatting,
# and metadata-like body content don't break parsing patterns.

SAMPLE="tests/formats/sample-comments-edge-cases.md"
REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/../.." && pwd)"
SAMPLE="$REPO_ROOT/tests/formats/sample-comments-edge-cases.md"

# --- Emojis ---

Expand Down
3 changes: 2 additions & 1 deletion tests/formats/test-comment-parsing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# These are load-bearing patterns used by shell scripts -- cross-platform
# breakage (BSD vs GNU) must be caught here.

SAMPLE="tests/formats/sample-comments-hawksbury.md"
REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/../.." && pwd)"
SAMPLE="$REPO_ROOT/tests/formats/sample-comments-hawksbury.md"

# --- Basic ID operations ---

Expand Down
3 changes: 2 additions & 1 deletion tests/formats/test-tree-parsing.bats
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
# Mirrors the comment parsing tests -- ensures tree format is equally
# well-tested for downstream shell scripts (Tasks 3-6).

SAMPLE="tests/formats/sample-tree-hawksbury.md"
REPO_ROOT="$(cd "$BATS_TEST_DIRNAME/../.." && pwd)"
SAMPLE="$REPO_ROOT/tests/formats/sample-tree-hawksbury.md"

# --- Header structure ---

Expand Down
Loading
Loading