Debugging with PHPUnit |
Site Admin
|
Thanks for report,
Can you update to PhpED 20032 / dbg 11.0.24 and double check? (Make sure that the project Wizard passed all the tests with no warnings or errors) If it still has problem showing test status make sure that the config (phpunit.xml) is not updated to phpUnit v9 format. phpUnit will post a warning and offer to upgrade config, just ignore it for now. If you have already upgraded configuration, I think you have no option but re-create it from scratches according to phpUnit v8 or v7 docs. Note that the config that PhpED uses -- phped_unittest.xml is directly derived from phpunit.xml with listener and coverage options added on top of it. With new format this may not work correctly, leaving it without the listener and this is why communication between phpUnit and PhpED, through the debugger, may not work and the status remains stale. |
||||||||||||
_________________ The PHP IDE team |
|
Thanks for the very prompt response. Using PhpED 20032 / dbg 11.0.24:
- When running all tests, the Test Suite executes (PHPUnit reports the result) and the tests are green with "status: passed". - When using the "Debug It" context menu item, PHPUnit reports "No tests executed!". The test is greyed with "status: didn't run". So the debugging issue still exists (and the namespaces in the --filter argument still have 3-backslash separators). But I can debug the tests by invoking them myself:
I used the following phpunit.xml file (based on the one at at gihub phpunit, branch 8.5). But I did not get a warning from phpunit about the format.
|
||||||||||||||||
|
Site Admin
|
Thanks. I thought it relates to issues we've fixed in 20032. Clearly it's not. Ok. We'll address it soon.
|
||||||||||||
_________________ The PHP IDE team |
Site Admin
|
Did you get a chance to try 20033?
|
||||||||||||
_________________ The PHP IDE team |
|
I didn't know 20033 had been released (I didn't receive a notification and its not in my spam folder).
I'll try it today. |
||||||||||||
|
|
The 20033 installer seems to have lost all my settings. It tries to install to C:\Program Files (x86)\NuSphere\PhpED rather than C:\Program Files\NuSphere\PhpED and offers me the full set of options rather than the ones I have previously chosen.
Is this expected behavior? I haven't installed it yet. |
||||||||||||
|
Site Admin
|
No no, it's not the installer lost any settings, it's a different installer. Clearly you downloaded 32bit version of the product, this is why it tried to install where 32bit version applications belong to -- Program Files (x86) and offered you the default installation options.
|
||||||||||||
_________________ The PHP IDE team |
|
>> No no, it's not the installer lost any settings, it's a different installer.
Apologies, I am an idiot. I can confirm that in 20033 the "Debug It" context menu item works correctly. Thanks very much for fixing this so quickly. |
||||||||||||
|
Site Admin
|
haha, no you're not. Actually you provoked a rather good question -- why the 32bit installer didn't pick-up choices you made in 64bit one.
|
||||||||||||
_________________ The PHP IDE team |
Debugging with PHPUnit |
|
||
Content © NuSphere Corp., PHP IDE team
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by
Powered by phpBB © phpBB Group, Design by phpBBStyles.com | Styles Database.
Powered by