Always in context of issue #290, here is another use case I wanted to share !
As CaptainHook seems not to have, by default, a plugin to debug actions, I've found
https://github.com/captainhook-git/captainhook/blob/e2a8cf4221af59a7c48986ed3f147bc087e29fb4/tests/integration/Plugin/SimplePlugin.php
(that did not changed since origins: 5 years ago) and tried it with such kind of captainhook.json config file
{
"config": {
"verbosity": "normal",
"allow-failure": false,
"ansi-colors": true,
"git-directory": ".git",
"fail-on-first-error": true,
"plugins": [
{
"plugin": "\\CaptainHook\\App\\Integration\\Plugin\\SimplePlugin"
}
],
"includes": [
"examples/pre-push.phpunit.json"
]
}
}
And when I run with CaptainHook 5.28.0
vendor/bin/captainhook hook:pre-push --bootstrap vendor-bin/phpunit/vendor/autoload.php --bootstrap vendor/autoload.php -v
I got this exception (with stack limited but enough to understand)
In Plugin.php line 50:
[CaptainHook\App\Exception\InvalidPlugin]
\CaptainHook\App\Integration\Plugin\SimplePlugin is not a valid CaptainHook plugin.
Exception trace:
at /shared/backups/bartlett/captainhook-bin-plugin/vendor/captainhook/captainhook/src/Config/Plugin.php:50
Always in context of issue #290, here is another use case I wanted to share !
As CaptainHook seems not to have, by default, a plugin to debug actions, I've found
https://github.com/captainhook-git/captainhook/blob/e2a8cf4221af59a7c48986ed3f147bc087e29fb4/tests/integration/Plugin/SimplePlugin.php
(that did not changed since origins: 5 years ago) and tried it with such kind of
captainhook.jsonconfig file{ "config": { "verbosity": "normal", "allow-failure": false, "ansi-colors": true, "git-directory": ".git", "fail-on-first-error": true, "plugins": [ { "plugin": "\\CaptainHook\\App\\Integration\\Plugin\\SimplePlugin" } ], "includes": [ "examples/pre-push.phpunit.json" ] } }And when I run with CaptainHook 5.28.0
I got this exception (with stack limited but enough to understand)