pestphp / pestphp/pest

[Bug]: Flag --compact does not work

Open
#1,632 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.