-
Notifications
You must be signed in to change notification settings - Fork 304
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Atoum support #198
Comments
I'm not sure, as I've never tried using PsySH with Atoum, but there should be a way to get it to work… I won't be able to take a look until tonight or tomorrow, but in the meantime, try adding this to your psysh config: 'usePcntl' => false, |
Thanks for your answer, and for PsySh, amazing tool. I write a lightest file if you want test yourself. root@a158132b34bb:/app# php /app/vendor/bin/atoum /app/src/tests/scratch/psysh.php
> PHP path: /usr/local/bin/php
> PHP version:
=> PHP 5.6.7 (cli) (built: Apr 7 2015 21:36:41)
=> Copyright (c) 1997-2015 The PHP Group
=> Zend Engine v2.6.0, Copyright (c) 1998-2015 Zend Technologies
=> with Xdebug v2.3.2, Copyright (c) 2002-2015, by Derick Rethans
> Total test memory usage: 0.00 Mb.
> Running duration: 0.21 second.
Failure (1 test, 0/1 method, 0 void method, 0 skipped method, 1 uncompleted method, 0 failure, 0 error, 0 exception)!
> Total test duration: 0.00 second.
> There is 1 uncompleted method:
=> tests\units\Foo::testGet() with exit code 0:
==> output(1076) "Psy Shell v0.4.4 (PHP 5.6.7 — cli) by Justin Hileman
==> >>>
==> Exit: Ctrl+D
==> O:26:"mageekguy\atoum\test\score":15:{s:32:"mageekguy\atoum\test\scorecase";N;s:38:"mageekguy\atoum\test\scoredataSetKey";N;s:43:"mageekguy\atoum\test\scoredataSetProvider";N;s:13:"*passNumber";i:2;s:17:"*failAssertions";a:0:{}s:13:"*exceptions";a:0:{}s:20:"*runtimeExceptions";a:0:{}s:9:"*errors";a:0:{}s:10:"*outputs";a:0:{}s:12:"*durations";a:1:{i:0;a:4:{s:5:"class";s:15:"tests\units\Foo";s:6:"method";s:7:"testGet";s:5:"value";d:0.14648890495300293;s:4:"path";s:32:"/app/src/tests/scratch/psysh.php";}}s:15:"*memoryUsages";a:1:{i:0;a:3:{s:5:"class";s:15:"tests\units\Foo";s:6:"method";s:7:"testGet";s:5:"value";i:6553600;}}s:14:"*voidMethods";a:0:{}s:21:"*uncompletedMethods";a:0:{}s:17:"*skippedMethods";a:0:{}s:11:"*coverage";C:30:"mageekguy\atoum\score\coverage":194:{a:7:{i:0;a:1:{s:3:"Foo";s:32:"/app/src/tests/scratch/psysh.php";}i:1;a:1:{s:3:"Foo";a:1:{s:3:"get";a:4:{i:9;i:1;i:11;i:1;i:13;i:1;i:14;i:-2;}}}i:2;a:0:{}i:3;a:0:{}i:4;a:0:{}i:5;a:0:{}i:6;a:0:{}}}}" |
Hello there, Actually problem was under the way of The default engine are http://docs.atoum.org/en/latest/written_help.html?highlight=engine#execution-engine
Thanks a lot to Hywan and Jubianchi from Atoum team for there help. |
Oh, yeah, that makes total sense. I didn't realize they were running in concurrent subprocesses by default. That would definitely mess with PsySH :) |
Hello,
I've noticed PsySh don't work during Atoum execution.
It's a crime for TDD 😢
Someone know why is not working ?
Ctrl+D
seems to be a good start of reason.The text was updated successfully, but these errors were encountered: