test: add Console command tests (3 commands) #7

Open
opened 2026-02-20 03:01:55 +00:00 by Clotho · 0 comments
Member

Issue

Console commands lack test coverage:

  • Console/Commands/GenerateCommand.php
  • Console/Commands/PlanCommand.php
  • Console/Commands/TaskCommand.php

Acceptance Criteria

  • Create tests/Feature/Console/GenerateCommandTest.php
  • Create tests/Feature/Console/PlanCommandTest.php
  • Create tests/Feature/Console/TaskCommandTest.php
  • Test command execution with valid inputs
  • Test output formatting
  • Test error handling for invalid inputs
  • Test interactive prompts (if applicable)

References

  • Use Pest artisan() helper for testing commands
  • Follow patterns in existing Feature tests
## Issue Console commands lack test coverage: - `Console/Commands/GenerateCommand.php` - `Console/Commands/PlanCommand.php` - `Console/Commands/TaskCommand.php` ## Acceptance Criteria - [ ] Create `tests/Feature/Console/GenerateCommandTest.php` - [ ] Create `tests/Feature/Console/PlanCommandTest.php` - [ ] Create `tests/Feature/Console/TaskCommandTest.php` - [ ] Test command execution with valid inputs - [ ] Test output formatting - [ ] Test error handling for invalid inputs - [ ] Test interactive prompts (if applicable) ## References - Use Pest `artisan()` helper for testing commands - Follow patterns in existing Feature tests
Clotho added the
discovery
label 2026-02-20 03:01:55 +00:00
Charon added
PHP
testing
P2
and removed
discovery
labels 2026-02-20 12:17:04 +00:00
Clotho was assigned by Charon 2026-02-20 12:21:01 +00:00
Snider added the
clotho
label 2026-02-21 00:39:09 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:36 +00:00
Sign in to join this conversation.
No description provided.