1
0
Fork 0
mirror of https://github.com/archtechx/tenancy.git synced 2026-02-05 01:14:03 +00:00

Claude code adjustments

This commit is contained in:
Samuel Štancl 2025-05-30 02:03:27 +02:00
parent 58712f53af
commit 8fb9e8f74f
3 changed files with 15 additions and 2 deletions

View file

@ -6,6 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
### Testing ### Testing
- `composer test` - Run tests without coverage using Docker - `composer test` - Run tests without coverage using Docker
- `./test tests/TestFile.php` - Run an entire test file
- `./t 'test name'` - Run a specific test - `./t 'test name'` - Run a specific test
### Code Quality ### Code Quality

8
t
View file

@ -1,3 +1,9 @@
#!/bin/bash #!/bin/bash
docker compose exec -e COLUMNS=$(tput cols) -T test vendor/bin/pest --color=always --no-coverage --filter "$@" if [[ "${CLAUDECODE}" != "1" ]]; then
COLOR_FLAG="--color=always"
else
COLOR_FLAG=""
fi
docker compose exec -e COLUMNS=$(tput cols) -T test vendor/bin/pest ${COLOR_FLAG} --no-coverage --filter "$@"

8
test
View file

@ -1,4 +1,10 @@
#!/bin/bash #!/bin/bash
# --columns doesn't seem to work at the moment, so we're setting it using an environment variable # --columns doesn't seem to work at the moment, so we're setting it using an environment variable
docker compose exec -e COLUMNS=$(tput cols) -T test vendor/bin/pest --colors=always "$@" if [[ "${CLAUDECODE}" != "1" ]]; then
COLOR_FLAG="--colors=always"
else
COLOR_FLAG=""
fi
docker compose exec -e COLUMNS=$(tput cols) -T test vendor/bin/pest ${COLOR_FLAG} "$@"