-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(test): prevent error by upgrading suites #512
base: main
Are you sure you want to change the base?
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,14 +29,14 @@ | |
], | ||
"scripts": { | ||
"test": "phpunit", | ||
"test:coverage": "vendor/bin/phpunit --coverage-html coverage" | ||
"test:coverage": ["@putenv XDEBUG_MODE=coverage","vendor/bin/phpunit --coverage-html coverage"] | ||
}, | ||
"require": { | ||
"php": ">=7.1.0" | ||
"php": ">=7.4.0" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Dit is een breaking change. In de README staat dat we momenteel PHP 7.1 ondersteunen. Voor klanten die < 7.4 hebben zou dan ineens de package niet meer installable of updateable zijn. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ja weet even niet waarom deze is aangepast, zal ik terugzetten. |
||
}, | ||
"require-dev": { | ||
"fakerphp/faker": "^v1.16.0", | ||
"phpunit/phpunit": "^7.5.20", | ||
"phpunit/phpunit": "^11", | ||
"psr/container": "~1.0.0" | ||
}, | ||
"autoload": { | ||
|
@@ -50,4 +50,4 @@ | |
"MyParcelNL\\Sdk\\Test\\": "test" | ||
} | ||
} | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ version: '3.9' | |
|
||
# volumes are not in common, because phpstorm doesn't understand it | ||
x-common: &common | ||
image: ghcr.io/myparcelnl/php-xd:7.2 | ||
image: ghcr.io/myparcelnl/php-xd:8.2 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ditto als mijn opmerking in de test workflow, alleen dan toepasbaar op lokale ontwikkeling impact. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. zelfde antwoord |
||
init: true | ||
env_file: | ||
- .env | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eigenlijk was de testsuite al niet geweldig want
A) We testen niet op alle PHP versies
B) We testen alleen op PHP 7.2 en niet op 7.1 welke volgens onze composer & README wel zou moeten werken
Hoe dan ook skippen we hier nu zoveel PHP versies dat het onmogelijk is om te weten of de boel in PHP < 8.2 nog werkt. Ik zou dit dan ook niet willen veranderen naar iets anders dan wat we in onze composer.json als versie meegeven (zie mijn comment daarbij)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Het klopt dat die niet geweldig is, wat ook niet geweldig is is dat die api verzoeken doet met random data, waardoor sommige tests soms falen maar niet altijd. Ik denk niet dat ik in een story van 0 punten dat allemaal kan fixen, daarom koos ik voor een upgrade zodat alles weer werkte en de andere SDK stories door kunnen.