Open oprypkhantc opened 10 months ago
At the same time, somehow columns are automatically detected on CI (which natively runs Linux, but it also runs inside a Docker container) and do work. Percentage progress is still missing though.
I noticed the missing of the default completion % when migrating to Pest too, its really more useful when your tests takes almost an hour to complete than thousands of " . " only.
I would love to have a progressbar instead and do tried to implement, but could not find a way to override the needed classes.
Also having an issue with --columns
in Docker (though without parallel tests interestingly). I have a simple bash script for running the tests, and this is what I added as a workaround:
- docker-compose exec -T test vendor/bin/pest "$@"
+ docker-compose exec -e COLUMNS=$(tput cols) -T test vendor/bin/pest "$@"
The COLUMNS
env var does work for me, but --columns
doesn't, so this passes the (outer) terminal width to pest within docker via an env var.
Edit: After some more testing, --columns
/--columns max
doesn't seem to work in CI (GitHub Actions) for me either. Locally setting COLUMNS=
works fine even with --compact
. Tested that on CI and it works the same.
One more semi-related thing I haven't been able to get to work is --no-progress
. Doesn't seem to do anything locally (in Docker) or on CI for me.
What Happened
When you use
pest --compact --columns=20
, progress is being reported as dots, and I expect it to report 20 dots in a line, then a percentage overall progress, similar to how bothphpunit
andparatest
do it out-of-the-box. Instead, dots are just being reported till the very end of the line and percentage progress is never reported anywhere.Using
pest --parallel
forces the--compact
look, but trying to use--columns=20 --parallel
results in aThe "--columns" option does not exist.
error. The columns in of themsevles aren't an issue, it's that it's impossible to tell the actual progress.We currently have 18k tests and these take a while to run, so having a progress is quite criticial.
As a side issue, there's no way to use the default pest printer in a non-compact mode with
--parallel
. If this is considered a bug, I'll report this as a separate issue.How to Reproduce
Use
pest --compact --columns=20
orpest --parallel
with at least a 100 tests.Sample Repository
No response
Pest Version
2.25.0
PHP Version
8.2.12
Operation System
Linux
Notes