Skip to content

Commit

Permalink
Change script
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasnorre committed Nov 10, 2024
1 parent d067f85 commit fdd69ce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ Execute the following command to run the tests:
composer test:run
```

This is included in `composer ci` to run the CI checks locally.

### Run a specific test

If you want to run tests for one specific exercise, you can do it with following cli command.
Expand All @@ -48,7 +50,11 @@ composer test:run -- exercise-name
composer test:run -- book-store
```

This is included in `composer ci` to run the CI checks locally.
If you want to run all starting with let's say 'b' you can run

```shell
composer test:run -- "b*"
```

## Running Style Checker

Expand Down
2 changes: 1 addition & 1 deletion bin/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function main {
has_failures=0

name_filter=()
if [ -n "$1" ]; then
if [ $# -ge 1 ] && [ -n "$1" ]; then
name_filter=("-name" "$1")
fi

Expand Down

0 comments on commit fdd69ce

Please sign in to comment.