Just a note regarding a recent change to the unit testing suite for those who are trying to run them. Output buffering was recently enabled at the start of the script presumably to facilitate session tests. As a result, PHPUnit will not display any output until all the tests are complete. If you run phpunit and it appears to just hang, that is normal. Just give the tests time to complete and you will see all the results at the end.
On Monday, August 13, 2012 4:02:08 AM UTC+3, Ian wrote:
> Just a note regarding a recent change to the unit testing suite for those > who are trying to run them. Output buffering was recently enabled at the > start of the script presumably to facilitate session tests. As a result, > PHPUnit will not display any output until all the tests are complete. If > you run phpunit and it appears to just hang, that is normal. Just give the > tests time to complete and you will see all the results at the end.
Unfortunately our (few) tests for JSession require this for now. If you find a way to rewrite them that this isn't necessary anymore that be very welcome.
Rouven
On 19.08.2012, at 21:15, Stefan Neculai <stefan.necu...@gmail.com> wrote:
> Is it there any possibility to make the output still show while running the tests? I find the output during the test really useful.
> --
> Thanks,
> Stefan
> On Monday, August 13, 2012 4:02:08 AM UTC+3, Ian wrote:
> Just a note regarding a recent change to the unit testing suite for those who are trying to run them. Output buffering was recently enabled at the start of the script presumably to facilitate session tests. As a result, PHPUnit will not display any output until all the tests are complete. If you run phpunit and it appears to just hang, that is normal. Just give the tests time to complete and you will see all the results at the end.
I was rather thinking at an option to set in bootstrap so everyone can
enable and disable it easily. Developers can let it enabled when they run
session tests and disable otherwise.
--
Stefan
On Mon, Aug 20, 2012 at 12:55 AM, Rouven Weßling <m...@rouvenwessling.de>wrote:
> Unfortunately our (few) tests for JSession require this for now. If you
> find a way to rewrite them that this isn't necessary anymore that be very
> welcome.
> Rouven
> On 19.08.2012, at 21:15, Stefan Neculai <stefan.necu...@gmail.com> wrote:
> Hey,
> Is it there any possibility to make the output still show while running
> the tests? I find the output during the test really useful.
> --
> Thanks,
> Stefan
> On Monday, August 13, 2012 4:02:08 AM UTC+3, Ian wrote:
>> Just a note regarding a recent change to the unit testing suite for those
>> who are trying to run them. Output buffering was recently enabled at the
>> start of the script presumably to facilitate session tests. As a result,
>> PHPUnit will not display any output until all the tests are complete. If
>> you run phpunit and it appears to just hang, that is normal. Just give the
>> tests time to complete and you will see all the results at the end.
You still do get the results at the end, you just have to wait until everything is complete.
It isn't too bad so long as you use filter to only run the tests you actually want to test.
Something else that might be reasonable, so long as all the JSession tests are in one class (which I didn't look to check) would be to end output buffering in the tearDownAfterClass so that you would get the normal progress report as soon as the session tests were done.
On Sunday, 19 August 2012 19:47:20 UTC-4, Stefan Neculai wrote:
> Hi,
> I was rather thinking at an option to set in bootstrap so everyone can > enable and disable it easily. Developers can let it enabled when they run > session tests and disable otherwise.
> --
> Stefan
> On Mon, Aug 20, 2012 at 12:55 AM, Rouven Weßling <m...@rouvenwessling.de<javascript:>
> > wrote:
>> Unfortunately our (few) tests for JSession require this for now. If you >> find a way to rewrite them that this isn't necessary anymore that be very >> welcome.
>> Rouven
>> On 19.08.2012, at 21:15, Stefan Neculai <stefan....@gmail.com<javascript:>> >> wrote:
>> Hey,
>> Is it there any possibility to make the output still show while running >> the tests? I find the output during the test really useful.
>> --
>> Thanks,
>> Stefan
>> On Monday, August 13, 2012 4:02:08 AM UTC+3, Ian wrote:
>>> Just a note regarding a recent change to the unit testing suite for >>> those who are trying to run them. Output buffering was recently enabled at >>> the start of the script presumably to facilitate session tests. As a >>> result, PHPUnit will not display any output until all the tests are >>> complete. If you run phpunit and it appears to just hang, that is normal. >>> Just give the tests time to complete and you will see all the results at >>> the end.