Comments (23)
I even tried to run it in cygwin and I have the same thing
from humbug.
Just to cover the basics (I won't ask you to check the power cable!):
Is humbug.json located in root directory (same level as app and src)?
From what directory are you running humbug?
Any example of a public repo where this occurs (if I can locate one, should be simple to spot the pathing issue)?
from humbug.
So my power cable was plugged :)
So my humbug.json was in the root directory. I was running humbug in the root directory as well.
Humbug itself is located outside my root directory.
I have no public repo available and I am not authorized to share my work repo. I'll try to find one.
from humbug.
@aledeg Give it a shot now and see if @rollenes changes work out. I'm reopening temporarily so you can confirm if fixed.
from humbug.
I will test it on Monday. I let you know
from humbug.
@aledeg No problem - enjoy the weekend :P
from humbug.
So I tested it and it's even worst. Now I have this error message
_ _ _
| || |_ _ _ __ | |__ _ _ __ _
| __ | || | ' \| '_ \ || / _` |
|_||_|\_,_|_|_|_|_.__/\_,_\__, |
|___/
Humbug version 1.0-dev
Humbug running test suite to generate logs and code coverage data...
0 [>---------------------------------------------------------] 1 sec
Warning: array_map(): An error occurred while invoking the map callback in C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php on line 51
Call Stack:
0.0000 129880 1. {main}() C:\Work\Sources\Contrib\humbug\bin\humbug:0
0.0312 1279760 2. Symfony\Component\Console\Application->run() C:\Work\Sources\Contrib\humbug\bin\humbug:23
0.0312 1534400 3. Symfony\Component\Console\Application->doRun() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:126
0.0312 1534856 4. Symfony\Component\Console\Application->doRunCommand() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:195
0.0312 1535064 5. Symfony\Component\Console\Command\Command->run() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:874
0.0312 1536800 6. Humbug\Command\Humbug->execute() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Command\Command.php:253
0.0468 2097544 7. Humbug\Adapter\Phpunit->getProcess() C:\Work\Sources\Contrib\humbug\src\Command\Humbug.php:108
0.0468 2098864 8. Humbug\Adapter\Phpunit->assembleXmlConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:74
0.0468 2125136 9. Humbug\Adapter\Phpunit\XmlConfigurationBuilder->getConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:210
0.0468 2168432 10. Humbug\Adapter\Phpunit\XmlConfigurationBuilder->initializeConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:78
0.0624 2187240 11. Humbug\Adapter\Phpunit\XmlConfiguration->replacePathsToAbsolutePaths() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:130
0.0624 2189120 12. Humbug\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor->visitElement() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration.php:193
0.0624 2189216 13. Humbug\Adapter\Locator->locateDirectories() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor.php:21
0.0624 2189760 14. array_map() C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php:51
[Humbug\Exception\InvalidArgumentException]
Could not find file app/../src/Company/PermitBundle/Tests working from app
humbug [-a|--adapter="..."] [-o|--options="..."] [-c|--constraints="..."] [-t|--timeout="..."] [subcommand]
from humbug.
@rollenes Any ideas?
from humbug.
@aledeg Can you also run Humbug with -vvv as an option (should get the whole exception stack)?
from humbug.
Per your request, here is the full stack
_ _ _
| || |_ _ _ __ | |__ _ _ __ _
| __ | || | ' \| '_ \ || / _` |
|_||_|\_,_|_|_|_|_.__/\_,_\__, |
|___/
Humbug version 1.0-dev
Humbug running test suite to generate logs and code coverage data...
0 [>---------------------------------------------------------] 1 sec
Warning: array_map(): An error occurred while invoking the map callback in C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php on line 51
Call Stack:
0.0000 129976 1. {main}() C:\Work\Sources\Contrib\humbug\bin\humbug:0
0.0220 1279808 2. Symfony\Component\Console\Application->run() C:\Work\Sources\Contrib\humbug\bin\humbug:23
0.0280 1534520 3. Symfony\Component\Console\Application->doRun() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:126
0.0290 1534976 4. Symfony\Component\Console\Application->doRunCommand() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:195
0.0290 1535184 5. Symfony\Component\Console\Command\Command->run() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:874
0.0300 1537600 6. Humbug\Command\Humbug->execute() C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Command\Command.php:253
0.0480 2098368 7. Humbug\Adapter\Phpunit->getProcess() C:\Work\Sources\Contrib\humbug\src\Command\Humbug.php:108
0.0480 2099688 8. Humbug\Adapter\Phpunit->assembleXmlConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:74
0.0490 2125960 9. Humbug\Adapter\Phpunit\XmlConfigurationBuilder->getConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:210
0.0510 2169256 10. Humbug\Adapter\Phpunit\XmlConfigurationBuilder->initializeConfiguration() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:78
0.0530 2188064 11. Humbug\Adapter\Phpunit\XmlConfiguration->replacePathsToAbsolutePaths() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:130
0.0540 2189944 12. Humbug\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor->visitElement() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration.php:193
0.0540 2190040 13. Humbug\Adapter\Locator->locateDirectories() C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor.php:21
0.0540 2190584 14. array_map() C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php:51
[Humbug\Exception\InvalidArgumentException]
Could not find file app/../src/MyCompany/PermitBundle/Tests working from app
Exception trace:
() at C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php:44
Humbug\Adapter\Locator->locate() at n/a:n/a
array_map() at C:\Work\Sources\Contrib\humbug\src\Adapter\Locator.php:51
Humbug\Adapter\Locator->locateDirectories() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor.php:21
Humbug\Adapter\Phpunit\XmlConfiguration\ReplaceWildcardVisitor->visitElement() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfiguration.php:193
Humbug\Adapter\Phpunit\XmlConfiguration->replacePathsToAbsolutePaths() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:130
Humbug\Adapter\Phpunit\XmlConfigurationBuilder->initializeConfiguration() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit\XmlConfigurationBuilder.php:78
Humbug\Adapter\Phpunit\XmlConfigurationBuilder->getConfiguration() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:210
Humbug\Adapter\Phpunit->assembleXmlConfiguration() at C:\Work\Sources\Contrib\humbug\src\Adapter\Phpunit.php:74
Humbug\Adapter\Phpunit->getProcess() at C:\Work\Sources\Contrib\humbug\src\Command\Humbug.php:108
Humbug\Command\Humbug->execute() at C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Command\Command.php:253
Symfony\Component\Console\Command\Command->run() at C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:874
Symfony\Component\Console\Application->doRunCommand() at C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:195
Symfony\Component\Console\Application->doRun() at C:\Work\Sources\Contrib\humbug\vendor\symfony\console\Symfony\Component\Console\Application.php:126
Symfony\Component\Console\Application->run() at C:\Work\Sources\Contrib\humbug\bin\humbug:23
humbug [-a|--adapter="..."] [-o|--options="..."] [-c|--constraints="..."] [-t|--timeout="..."] [subcommand]
from humbug.
@padraic I`ll try to recreate this issue.
from humbug.
I recreated issue. Did some regression testing in #112.
@aledeg I do not run Windows so it would be very helpfull to have feedback from you after merge #112.
from humbug.
@aledeg Changes merged.
We will get there...eventually ;). Thanks @rollenes for looking at this.
from humbug.
So I run it this morning and it is working. The only thing that is weird is that the output doesn't look like that:
242 [=======================================================] 30 secs
I have something which looks like that instead:
0 [>---------------------------------------------------------] 1 sec
1 [->--------------------------------------------------------] 3 secs
2 [-->-------------------------------------------------------] 3 secs
3 [--->------------------------------------------------------] 3 secs
4 [---->-----------------------------------------------------] 3 secs
5 [----->----------------------------------------------------] 3 secs
6 [------>---------------------------------------------------] 3 secs
7 [------->--------------------------------------------------] 4 secs
8 [-------->-------------------------------------------------] 4 secs
9 [--------->------------------------------------------------] 4 secs
10 [---------->-----------------------------------------------] 4 secs
11 [----------->----------------------------------------------] 4 secs
12 [------------>---------------------------------------------] 4 secs
13 [------------->--------------------------------------------] 4 secs
14 [-------------->-------------------------------------------] 4 secs
15 [--------------->------------------------------------------] 4 secs
16 [---------------->-----------------------------------------] 4 secs
17 [----------------->----------------------------------------] 4 secs
18 [------------------>---------------------------------------] 4 secs
19 [------------------->--------------------------------------] 4 secs
20 [-------------------->-------------------------------------] 5 secs
21 [--------------------->------------------------------------] 5 secs
and it goes for more than 600 lines.
Any ideas?
from humbug.
Make your console window wider and try again to see if that fixes it. I assume it's related to the following issue: symfony/symfony#13019
from humbug.
That's not the case since my window is maximized. Maybe it is a problem with cygwin
from humbug.
I did the same test on git bash and I have the same problem. And I can see the progress bar completely, so it is not related to the bug you mentioned.
from humbug.
I probably can't fix that outright if overwriting doesn't work, but I make it more palatable. I've added a redraw frequency setting for undecorated consoles. You won't get 600 lines - should be around 10 now at a redraw of 60.
from humbug.
Nice! That's way better than having over 600 lines 👍
from humbug.
I reproduced this issue by zooming my bash console on Linux. So it looks
like it is a Progress Bar issue.
2015-03-03 20:27 GMT+01:00 Alexis Degrugillier [email protected]:
I did the same test on git bash and I have the same problem. And I can see
the progress bar completely, so it is not related to the bug you mentioned.—
Reply to this email directly or view it on GitHub
#110 (comment).
from humbug.
That's what mentioned @padraic. In my use case, the windows was maximized so it is not linked to that problem. I guess that my consoles do not support redraw.
Anyway it is not a big deal.
Thank to both of you
from humbug.
@rollenes Yeah, that's one cause. The other is certain consoles not supporting the overwrite decoration, in which case all you can do is either remove the progress bar, or print it on a newline automatically based on a redraw calc. Should be good now though perhaps a non-progressbar alternative eventually might be a good idea for these cases.
from humbug.
I think that what you've done is sufficient for the redraw. The only thing I can think of is having a nicer number than 60 like 100 for instance.
from humbug.
Related Issues (20)
- Make Humbug tests up and running HOT 3
- Communication channels HOT 8
- Path to PHPUnit not properly escaped HOT 2
- PHPUnit Mock and Prophecy objects shoudn't be mutated HOT 5
- [DISCUSS] Roadmap for Humbug 2.0 HOT 7
- Add behat scenario where there are no tests to run against mutations. HOT 1
- Resolve Appveyor failed builds for PHP 7.0
- PHPUnit Test Listeners are technically read-only (not enforced). We need another means of manipulating suite execution order and suite filtering. HOT 2
- PHAR build error - solution to be documented
- [DISCUSS] Dependency interference/Initial run failures HOT 2
- Make phpdbg a first class citizen HOT 1
- Document whether Humbug runs processes in parallel
- Stripping PHPUnit configuration of elements HOT 3
- Document preferred non-PHAR, non-global installation as using composer-bin to isolate dependencies
- Humbug fails with PHPUnit stderr setting
- Is there a way to configure which PHPUnit test suite to run? HOT 2
- Incompatibility with php-vcr (or other libraries using stream_wrapper_register) HOT 2
- You need to install and enable xdebug in order to.. even with xdebug installed HOT 2
- TImeouts - how to prevent them
- Humbug reports uncovered mutants on a 100% covered codebase HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from humbug.