mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-08-03 23:21:44 +00:00
finish examples on testing within dev docker container
This commit is contained in:
parent
b2e022cab1
commit
08f907be44
1 changed files with 6 additions and 4 deletions
|
|
@ -259,17 +259,19 @@ To run code coverage test:
|
|||
|
||||
```bash
|
||||
docker compose -f compose.dev.yaml run --rm \
|
||||
-e XDEBUG_MODE=coverage \
|
||||
partdb \
|
||||
php bin/phpunit \
|
||||
--coverage-text \
|
||||
-e XDEBUG_MODE=coverage partdb php bin/phpunit --coverage-text \
|
||||
<test file>
|
||||
```
|
||||
|
||||
Examples:
|
||||
|
||||
```bash
|
||||
docker compose -f compose.dev.yaml run --rm partdb php bin/phpunit \
|
||||
tests/Services/ImportExportSystem/BOMImporterTest.php
|
||||
|
||||
docker compose -f compose.dev.yaml run --rm -e XDEBUG_MODE=coverage \
|
||||
partdb php bin/phpunit --coverage-text \
|
||||
tests/Services/ImportExportSystem/BOMImporterTest.php
|
||||
```
|
||||
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue