Commit Graph

20 Commits

Author SHA1 Message Date
Tiago Santos 7abf68e706 fix: allow --init without a tests directory (#1939)
* fix: allow --init without a tests directory

Boot aborted before TIA state was registered, and shutdown then
tried to construct the plugin. That hid the real error behind
"State cannot be resolved" on a fresh install.

Closes #1934

* fix: detect --init anywhere in the arguments

Flags before --init were still treated as a normal run and failed when tests/ did not exist.

* fix: drop duplicate Kernel::$booted and share --init check

5.3.1 already gates plugin termination on boot, so the rebase must
not declare $booted again. --init and --init=value now share
HandleArguments::hasArgument, and the success snapshot includes
the new init tests.

* test: fix init suite expectations

Parallel total omitted the four --init tests, which
failed the success snapshot. Rector requires toBeFile().

---------

Co-authored-by: Tiago Santos <tsantos@lynixt.pt>
2026-10-26 16:21:56 +05:30
nuno maduro 42d9b777bf chore: coding style changes 2026-08-07 14:52:56 +01:00
Nuno Maduro a310796165 Fixes filtering tests 2025-04-29 11:38:33 +01:00
Nuno Maduro e0f07be017 fix: init command detecting laravel 2025-04-03 17:23:39 +01:00
Nuno Maduro e2d360b1b5 chore: adjusts tests 2024-09-03 14:09:03 +01:00
Nuno Maduro cbb6a58c8a feat: only exits of init 2023-06-18 11:52:51 +01:00
Filip Ganyicz 97dbda92e6 Update stub extensions 2023-04-08 01:24:00 +02:00
Nuno Maduro b828843974 fix: spacing in init 2023-03-17 15:19:22 +00:00
Nuno Maduro ec4f15132e feat: allows to skip support via env 2023-03-17 11:42:23 +00:00
Nuno Maduro 0e4cc94471 feat: improve --init command 2023-03-17 10:58:23 +00:00
Nuno Maduro 9e89fb5e23 feat: improves init plugin 2023-03-17 10:31:03 +00:00
Fabio Ivona a6e133a194 add --ansi option to artisan command call 2023-02-20 23:56:40 +01:00
Fabio Ivona 69b1c08558 refactor 2023-02-20 23:44:15 +01:00
Fabio Ivona 64dbcf0a26 init command tweak 2023-02-20 23:17:41 +01:00
Nuno Maduro b6598af59f Improves init command 2022-09-18 11:54:07 +01:00
Nuno Maduro 45011ebd14 Code quality improvements 2022-09-16 11:27:17 +01:00
Nuno Maduro e9564febaf Migrates to Pint 2022-09-16 10:45:53 +01:00
Nuno Maduro dd081c59b7 refacto: memory plugin 2021-12-05 17:48:51 +00:00
Nuno Maduro 2b687a7269 refactor: PHP 8 features 2021-10-24 18:29:59 +01:00
Owen Voke 55449c956a feat: move init command out of external plugin 2021-06-15 09:29:33 +01:00