Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Console Test Laravel Package

zenstruck/console-test

Test your Symfony Console commands with ease. zenstruck/console-test provides a lightweight harness to run commands, feed input, capture output, and assert exit codes and messages—ideal for fast, reliable unit/integration tests without booting full apps.

View on GitHub
Deep Wiki
Context7
v1.8.0

408575c feat: Add support for Symfony 8 (#30) by @Kocal 2124ed0 fix: Application::add() -> addCommand() (#31) by @kbond e161188 doc: add screencast link by @kbond

Full Change List

v1.7.0

61189de feat: Add assertOutputEmpty/NotEmpty and assertErrorOutputEmpty/NotEmpty (#26) by @smnandre c7347a2 minor: Complete InteractsWithConsole test coverage (#25) by @smnandre 44b4af3 fix: unwrap LazyCommand (#27) by @kbond, Jérémy

Full Change List

v1.6.1

a90833d fix: Allow falsy values to be passed to addOption and to the command execution (#23) by @TristanPouliquen

Full Change List

v1.6.0

f727837 feat: add assertFaulty assertion (#21) by @raphaelstolt 0625e55 chore: keep releases lean (#20) by @raphaelstolt

Full Change List

v1.5.0

cd1366d feat: Symfony 7 support (#19) by @kbond d0ed4fe chore: run php-cs-fixer on php 8 by @kbond 5fe2744 feat: require php 8+, symfony 5.4+ (#18) by @kbond 2eb231b fix(ci): add token by @kbond 11fb61f chore(ci): fix by @kbond 6019627 chore: update ci config (#17) by @kbond e5c000b ci: fix (#16) by @kbond

Full Change List

v1.4.0

d259ce4 [feature] add ability to test command completion (#15) by @kbond 686fbd2 [minor] simplify sca gha (#14) by @kbond 5995408 [minor] support Symfony 6.1 (#11) by @kbond

Full Change List

v1.3.0

991f765 [minor] remove scrutinizer (#10) by @kbond 6a26847 [feature] add TestCommand::expectException() (#10) by @kbond dad0fae [minor] add static code analysis with phpstan (#9) by @kbond ef51134 [minor] output cli when using dump/dd by @kbond

Full Change List

v1.2.0

19e0705 [feature] run commands via application (#8) by @kbond

Full Change List

v1.1.0

12b200c [minor] refactor (#7) by @kbond 442d888 [feature] always use ConsoleOutput for tests (closes #6) (#7) by @kbond 48fb609 [feature] allow passing cli string to TestCommand::execute() (#5) by @kbond 7d6d6a0 [minor] add .editorconfig (#5) by @kbond aaa1597 [ci] use reusable workflows (#4) by @kbond

Full Change List

v1.0.0

d26a5b1 [minor] use zenstruck/assert for assertions instead of phpunit (#1) by @kbond 9ea2caa [doc] document how to standardize terminal width (#3) by @kbond 8e0c4ba [bug] standardize console width (#3) by @kbond

Full Change List

v0.3.0
  • 997ee1f [minor] allow Symfony 6 (#2) (Kevin Bond)
  • 4d59b3b [minor] adjust ci matrix (Kevin Bond)
  • 1651683 [minor] disable codecov pr annotations (Kevin Bond)
  • 9f6b010 [minor] update php-cs-fixer to v3 (Kevin Bond)
  • 5fe60ff [minor] adjust codecov threshold (Kevin Bond)
v0.2.1
  • 64b6eb5 [bug] don't split output streams by default (Kevin Bond)
v0.2.0
  • 9aecf59 [feature] access/assert against stderr output (Kevin Bond)
  • ae01bf0 [minor] refactor to run commands directly (instead of thru Application) (Kevin Bond)
  • 5584d4c [BC BREAK][minor] rename TestOutput to CommandResult (Kevin Bond)
  • 2487360 [minor] disabled secrets in test (Kevin Bond)
  • f6cc513 [minor] test verbosity (Kevin Bond)
  • bc2ac3a [minor] mark TestOutput::__construct() as internal (Kevin Bond)
v0.1.0

Initial pre-release.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport