Is there a way to see the number of tests that run...
# general
s
Is there a way to see the number of tests that run successfully in the stdout with
pants test ::
?
f
pants test —output=all
That will just output the data from the underlying test tools anyways
s
it's not showing anything differently, am I missing something?
e
Yes. What is the underlying test tool @shy-advantage-49800? Is this Python, some other language or mixed?
s
Python
e
So pytest. How do you get pytest to show what you want, Pants aside?
s
pytest tests/
(it shows the dots which represent the number of tests that run)
e
I don't repro. Here I use example-python which is Pants 2.16.0:
Apologies for the screen shot instead of text, from my phone.
Note the top vs the bottom - top command is as you ran in the original post, bottom command is as Josh suggests with
--output=all
, clearly different output.
f
oh I meant
pants test --output=all ::
... if you missed the
::
it would have just run 0 tests, therefore no output
e
Even so, that's different output!
s
ah... the result was cached, so that's why I was not seeing it
thanks 🙏
e
Nack, can't be so or Pants has a bug. Changing flags invalidates the cache.
s
ah, it didn't
e
I don't believe you.
s
I mean, when I added
[test].output = "all"
on the
pants.toml
, it didn't
e
Still a bug, but I did not try it that way.
s
yeah, it doesn't invalidate, but I'm fine with you not believing me. 🙏 as long as the first time shows it, I'm fine. Thanks!
e
As a contributor hopefully you'll find time to dig there and file an issue if there is none and this has not been resolved in later versions already.
s
e
Ok, thanks. I was not able to reproduce using the same Pants version. My session details are included in the issue - which I closed as un-reproducible. If you have time to circle back and provide more details / re-produce yourself, please re-open with all that.