Skip to content
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

make:command --test throws error #366

Closed
goodevilgenius opened this issue Dec 3, 2021 · 2 comments · Fixed by laravel-zero/framework#461
Closed

make:command --test throws error #366

goodevilgenius opened this issue Dec 3, 2021 · 2 comments · Fixed by laravel-zero/framework#461

Comments

@goodevilgenius
Copy link

Options listed for make:command include --pest and --test to create correspond Pest or PHPUnit tests for the new command.

When doing make:command --test Name or make:command --pest Name, the command is still created, but an error is shown that says:

  Command "make:test" is not defined.

  Did you mean one of these?
      make:command
      pest:test

This happens on a new installation with the current version (8.8) with nothing additional added.

@goodevilgenius
Copy link
Author

Bug is still present in 9.0.

I found a workaround by adding Illuminate\Foundation\Console\TestMakeCommand::class, to config/commands.php under add.

Seems like this command should already be included.

@owenvoke
Copy link
Member

owenvoke commented Mar 1, 2022

It should probably be added to this array. 👍🏻 (Apologies for the delayed reply)
https://github.com/laravel-zero/framework/blob/master/src/Kernel.php#L36

I will add this shortly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants