[
https://issues.apache.org/jira/browse/NETBEANS-2573?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16846821#comment-16846821
]
Czukowski commented on NETBEANS-2573:
-------------------------------------
[~tmysik] in the past I've browsed some PHPUnit issues created by other people,
how the developers responded to them, and I concluded that the main developer
just isn't a people person and isn't very open to the outside ideas
(disclaimer: just my opinion and might be totally untrue). Still I don't think
there is a point in holding grudges because of that. In time I just came to
accept that if I had any issue with PHPUnit, I'd be basically on my own to
solve it somehow. So it's just one of those areas where communication doesn't
take you very far :)
As for the subject of temporary XML config, you are right, there would need to
be some well-thought merging logic. This makes the solution non-trivial, but
I'm afraid that XML configs are now the only reliable way of configuring a
PHPUnit runner (for instance, it is the only way that I know of to configure
code coverage I mentioned above, so the plugin integration is not working at
the moment).
There is also a hack I've mentioned above (about 2 days ago) that could perhaps
serve as a temporary fix and buy some time needed for bigger changes.
> 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
>
> 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