[Bug]: Flag --compact does not work
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 11.7k
- Forks
- 538
- Avg merge
- 4d 11h
- Merged PRs (30d)
- 8
Description
What Happened
When I start the tests with --compact, it does not change anything in the output. Only with --parallel the compact output is been shown. We do have a phpunit.xml.dist file, but when I delete that file, the output is still the same. So I assume that we do not have any config issue with that.
# ./vendor/bin/pest --compact
PASS App\Tests\Backend\Domain\Comparison\Model\TariffLabelsValueTest
✓ iteration 0.01s
✓ merging
PASS Tests\Shared\Translation\LiteralTranslationMapTest
✓ LiteralTranslatableMap → constructor → it creates instance with all three languages 0.03s
✓ LiteralTranslatableMap → constructor → it allows empty strings
✓ LiteralTranslatableMap → trans → it returns German translation for de_DE locale 0.01s
✓ LiteralTranslatableMap → trans → it returns English translation for en_US locale
✓ LiteralTranslatableMap → trans → it returns Polish translation for pl_PL locale
✓ LiteralTranslatableMap → trans → it returns German translation for de locale
✓ LiteralTranslatableMap → trans → it returns English translation for en locale
✓ LiteralTranslatableMap → trans → it returns Polish translation for pl locale
✓ LiteralTranslatableMap → trans → it does not call translator
✓ LiteralTranslatableMap → trans → it handles special characters in German
...
...
How to Reproduce
Run the command ./vendor/bin/pest --compact in your php project with pest tests
Sample Repository
No response
Pest Version
4.3.2
PHP Version
8.5.0
Operation System
Linux
Notes
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue with ./vendor/bin/pest --compact in a PHP project, then compare its output with the output when --parallel is used. Check whether removing phpunit.xml.dist changes either result; done means --compact visibly produces compact test output independently of --parallel.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100