Skip to content

Commit d5f16d1

Browse files
committed
test: Fix paths to test libs
1 parent b8f710a commit d5f16d1

8 files changed

Lines changed: 14 additions & 10 deletions

File tree

.gitmodules

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[submodule "test/bats"]
2-
path = test/bats
2+
path = tests/bats
33
url = https://github.com/bats-core/bats-core.git
44
[submodule "test/test_helper/bats-support"]
5-
path = test/test_helper/bats-support
5+
path = tests/test_helper/bats-support
66
url = https://github.com/bats-core/bats-support.git
77
[submodule "test/test_helper/bats-assert"]
8-
path = test/test_helper/bats-assert
8+
path = tests/test_helper/bats-assert
99
url = https://github.com/bats-core/bats-assert.git
1010
[submodule "test/test_helper/bats-file"]
11-
path = test/test_helper/bats-file
11+
path = tests/test_helper/bats-file
1212
url = https://github.com/bats-core/bats-file.git
1313
[submodule ".mk"]
1414
path = .mk

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
include .mk/GNUmakefile
2+
3+
.PHONY: tests
4+
5+
#BATS_LIB_PATH=tests
6+
tests:
7+
@tests/bats/bin/bats tests/test.bats --pretty

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ To use Aider, it must connect to an LLM. We recommend using locally hosted LLMs
3232
```bash
3333
ddev dotenv set .ddev/.env.aider --gemini-api-key=...
3434
echo .ddev/.env.aider >> .gitignore
35+
echo .aider/\* >> .gitignore
3536
```
3637

3738
For a full list of supported LLMs, review the [API key environment variables](https://aider.chat/docs/llms/other.html#other-api-key-variables) in the docs.

tests/test.bats

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,11 @@
1515
setup() {
1616
set -eu -o pipefail
1717

18-
# Override this variable for your add-on:
1918
export GITHUB_REPO=consensus-enterprises/ddev-aider
2019

21-
TEST_BREW_PREFIX="$(brew --prefix 2>/dev/null || true)"
22-
export BATS_LIB_PATH="${BATS_LIB_PATH}:${TEST_BREW_PREFIX}/lib:/usr/lib/bats"
23-
bats_load_library bats-assert
24-
bats_load_library bats-file
25-
bats_load_library bats-support
20+
load test_helper/bats-assert/load.bash
21+
load test_helper/bats-file/load.bash
22+
load test_helper/bats-support/load.bash
2623

2724
export DIR="$(cd "$(dirname "${BATS_TEST_FILENAME}")/.." >/dev/null 2>&1 && pwd)"
2825
export PROJNAME="test-$(basename "${GITHUB_REPO}")"

0 commit comments

Comments
 (0)