Skip to content

Commit

Permalink
Refactoring the event store interface
Browse files Browse the repository at this point in the history
  • Loading branch information
floriankraemer committed Jul 13, 2024
1 parent 268bce3 commit 8b3f244
Show file tree
Hide file tree
Showing 21 changed files with 3,344 additions and 987 deletions.
4 changes: 4 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
DB_HOST=mysql-container
DB_DATABASE=test
DB_USER=root;
DB_PASSWORD=changeme
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
/vendor/
/bin/
/.phpunit.cache/
infection.log
.env

34 changes: 34 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.DEFAULT_GOAL := help

help:
@echo "Available commands:"
@echo " - run-tests: Run tests"
@echo " - run-infection: Runs Infection mutation testing"
@echo " - coverage-text: Runs coverage text"
@echo " - coverage-html: Runs coverage html"
@echo " - all: Runs CS-Fixer, CS-Checker, Static Analyser and Tests"
@echo " - shell: Run shell"

run-tests:
@echo "Running tests"
docker compose run php composer test

run-infection:
@echo "Running infection mutation testing"
docker compose run php composer infection

coverage-text:
@echo "Running coverage text"
docker compose run php composer test-coverage

coverage-html:
@echo "Running coverage text"
docker compose run php composer test-coverage-html

all:
@echo "Running CS-Fixer, CS-Checker, Static Analyser and Tests"
docker compose run php composer all

shell:
@echo "Running shell"
docker compose run --service-ports --entrypoint /bin/bash php
41 changes: 39 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,49 @@
}
},
"require-dev": {
"ext-pdo": "*",
"phpunit/phpunit": "^10.5",
"squizlabs/php_codesniffer": "^3.9",
"phpstan/phpstan": "^1.10",
"ramsey/uuid": "^4.7"
"ramsey/uuid": "^4.7",
"infection/infection": "^0.29.6"
},
"config": {
"bin-dir": "bin"
"bin-dir": "bin",
"allow-plugins": {
"infection/extension-installer": true
}
},
"scripts": {
"test": [
"phpunit"
],
"infection": [
"infection"
],
"test-coverage": [
"phpunit --coverage-text"
],
"test-coverage-html": [
"phpunit --coverage-html tmp/coverage/"
],
"cscheck": [
"phpcs src/ tests/ --standard=PSR12 -s"
],
"csfix": [
"phpcbf src/ tests/ --standard=PSR12"
],
"analyze": [
"phpstan analyse src/"
],
"phpmd": [
"bin/phpmd ./src text cleancode,codesize,controversial,design"
],
"all": [
"@csfix",
"@cscheck",
"@analyze",
"@test"
]
}
}
Loading

0 comments on commit 8b3f244

Please sign in to comment.