-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
Description
Example:
- when asking for the testphase-report (
composer test-report), if a test does not have a right structure - example, using the iterators in a wrong way:
"fields": {
"iterators": [
"message",
"nutrition_flow",
"wizard_daily",
"plan_daily",
"session",
"bubble_notification"
]
}
- an exception is thrown:
./vendor/bin/testphase-report --dir ./tests/testphase --out ./tests/report
PHP Fatal error: Uncaught Phramework\Exceptions\IncorrectParametersException: Incorrect parameters in /var/www/vivante/ostomate-api/vendor/phramework/validate/src/ObjectValidator.php:395
Stack trace:
#0 /var/www/vivante/ostomate-api/vendor/phramework/validate/src/BaseValidator.php(455): Phramework\Validate\ObjectValidator->validate(Object(stdClass))
#1 /var/www/vivante/ostomate-api/vendor/phramework/validate/src/ObjectValidator.php(457): Phramework\Validate\BaseValidator->parse(Object(stdClass))
#2 /var/www/vivante/ostomate-api/vendor/phramework/testphase/src/TestParser.php(224): Phramework\Validate\ObjectValidator->parse(Object(stdClass))
#3 /var/www/vivante/ostomate-api/vendor/phramework/testphase/bin/testphase-report(147): Phramework\Testphase\TestParser->__construct('./tests/testpha...')
#4 {main}
thrown in /var/www/vivante/ostomate-api/vendor/phramework/validate/src/ObjectValidator.php on line 395
Script ./vendor/bin/testphase-report --dir ./tests/testphase --out ./tests/report handling the test-report event returned with error code 255
- Could you please show the error, instead of the ObjectValidator exceptions ?
Reactions are currently unavailable