mikeerickson / phpunit-pretty-result-printer

PHPUnit Pretty Result Printer -- make your PHPUnit tests look pretty!
MIT License
1.2k stars 71 forks source link

Running time for every test #121

Closed DanielBadura closed 5 years ago

DanielBadura commented 5 years ago

It would be awesome to get some more information for every test that is running. For example the execution time for the test and the test method name or the description.

I found another pretty printer that does something similar: https://github.com/sempro/phpunit-pretty-print

Maybe we can take this as an inspiration?

mikeerickson commented 5 years ago

I will have a look at this project

mikeerickson commented 5 years ago

@DanielBadura So, the only thing that I see this reporter that is different from my project is that it gives you the time for each test file, all other items are covered?

I guess, you also see the test description, but I am not sure how that would be integrated into our printer?

Let me think a bit on this one as to how we could enhance our printer to integrate these items without changing the core of project. If you have other ideas, I would be happy to consider

image

DanielBadura commented 5 years ago

Yes i meant the time for each test that executes. With this the need of the method name (or an description) come with it. Otherwise you cannot determine for which test the execution time is.

mikeerickson commented 5 years ago

@DanielBadura I don't see the benefit of adding this support to our project as it would basically been quite similar to what the project in question provides. If you want to see the verbosity of displaying execution time for each method name, I would think it would be easier just to use that project.