mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-08-03 23:21:44 +00:00
added notes for testing files within docker dev container
This commit is contained in:
parent
3fad1fd561
commit
b2e022cab1
1 changed files with 28 additions and 0 deletions
|
|
@ -246,6 +246,34 @@ docker compose -f compose.dev.yaml run --rm assets yarn build
|
|||
|
||||
---
|
||||
|
||||
# Testing
|
||||
|
||||
To run phpunit testing:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.dev.yaml run --rm partdb php bin/phpunit <test file>
|
||||
```
|
||||
|
||||
|
||||
To run code coverage test:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.dev.yaml run --rm \
|
||||
-e XDEBUG_MODE=coverage \
|
||||
partdb \
|
||||
php bin/phpunit \
|
||||
--coverage-text \
|
||||
<test file>
|
||||
```
|
||||
|
||||
Examples:
|
||||
|
||||
```bash
|
||||
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
# Database
|
||||
|
||||
The development environment uses SQLite.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue