[
https://issues.apache.org/jira/browse/NETBEANS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16848484#comment-16848484
]
Vítězslav Dvořák commented on NETBEANS-2573:
--------------------------------------------
Great Job! Works well :D The commandline generated is in my case:
{{"/usr/bin/php"
"/home/vitex/Projects/VitexSoftware/ease-framework/vendor/bin/phpunit"
"--colors" "--log-junit" "/tmp/nb-phpunit-log.xml" "--bootstrap"
"/home/vitex/Projects/VitexSoftware/ease-framework/tests/Bootstrap.php"
"--configuration"
"/home/vitex/Projects/VitexSoftware/ease-framework/phpunit.xml"
"--coverage-clover" "/tmp/nb-phpunit-coverage.xml"
"/home/vitex/Projects/3ThParty/netbeans/nbbuild/netbeans/php/phpunit/NetBeansSuite.php"}}
!image-2019-05-26-18-44-57-451.png!
{color:#d04437}Thank you very much!{color}
(y) Now i'm building fresh debian package. Grab it here:
https://www.vitexsoftware.cz/package.php?package=netbeans
> PHPUNIT update breaks running single test
> -----------------------------------------
>
> Key: NETBEANS-2573
> URL: https://issues.apache.org/jira/browse/NETBEANS-2573
> Project: NetBeans
> Issue Type: Bug
> Components: php - PHPUnit
> Affects Versions: 11.0
> Environment: Netbeans 11.0, PHP 7.3
> Reporter: Alan Langford
> Assignee: Tomáš Myšík
> Priority: Major
> Labels: pull-request-available
> Fix For: 12.0
>
> Attachments: image-2019-05-26-15-03-10-820.png,
> image-2019-05-26-18-44-57-451.png
>
> Time Spent: 40m
> Remaining Estimate: 0h
>
> When running a single test file and PHPUnit installed via composer, Netbeans
> generates a command line of this general form:
> php.exe "\{project}\vendor\phpunit\phpunit\phpunit" "--colors" "log-junit"
> "\{temp}\nb-phpunit-log.xml" "configuration" "\{project}\phpunit.xml"
> "coverage-clover" "\{temp}\nb-phpunit-coverage.xml" "C:\Program
> Files\netbeans 11\php\phpunit\NetBeansSuite.php" "--"
> "–run=\{project}\tests\SomeTest.php"
> The "–" argument used to fool PHPUnit. PHPUnit would strip the dashes and
> pass a empty string for the name of the test file.
> NetBeansSuite.php would then extract the --run=argument and run the test.
> The latest master for PHPUnit (a79e18fe27) has changed the way command lines
> are parsed; the "–" is discarded. PHPUnit then reports an error:
> Cannot open file "–run=\{project}\tests\SomeTest.php"
> I believe passing
> NetBeansSuite "C:\Program Files\netbeans 11\php\phpunit\NetBeansSuite.php"
> instead of
> "C:\Program Files\netbeans 11\php\phpunit\NetBeansSuite.php" "–"
> Will resolve the problem.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists