NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

phpunit-6.0.7 unrecognized option --log-json

 
Post new topic   Reply to topic    NetBeans Forums -> PHP Users
View previous topic :: View next topic  
Author Message
FrankPK



Joined: 20 Feb 2017
Posts: 4

PostPosted: Mon Feb 20, 2017 5:52 am    Post subject: phpunit-6.0.7 unrecognized option --log-json Reply with quote

When running unit tests with the current phpunit version, I get the message "No tests executed." The output window shows the message: "unrecognized option --log-json".

Typing "phpunit --help" in command line shows the following logging options

--log-junit <file> Log test execution in JUnit XML format to file.
--log-teamcity <file> Log test execution in TeamCity format to file.
--testdox-html <file> Write agile documentation in HTML format to file.
--testdox-text <file> Write agile documentation in Text format to file.
--testdox-xml <file> Write agile documentation in XML format to file.
--reverse-list Print defects in reverse order

It seems that the option --log-json was removed in the current phpunit version. So unit testing in netbeans in php wouldn't work.

Is there a workaround?
Should I post this in bugzilla?
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Mon Feb 20, 2017 8:32 am    Post subject: phpunit-6.0.7 unrecognized option --log-json Reply with quote

Hi,

Dne pondělí 20. února 2017 5:52:26 CET, FrankPK napsal(a):
Quote:
It seems that the option --log-json was removed in the current phpunit
version. So unit testing in netbeans in php wouldn't work.

unfortunately you are right.

Quote:
Is there a workaround?

Yes, please use a dev version of NetBeans [1].

Quote:
Should I post this in bugzilla?

No need, it is already there [2]. Please reopen this issue if you find any
error.

Thanks,
Tomas
[1] http://bits.netbeans.org/download/trunk/nightly/latest/
[2] https://netbeans.org/bugzilla/show_bug.cgi?id=269478
Back to top
FrankPK



Joined: 20 Feb 2017
Posts: 4

PostPosted: Mon Feb 20, 2017 6:18 pm    Post subject: Re: phpunit-6.0.7 unrecognized option --log-json Reply with quote

Hi Tomas,

the dev version works. Great! Very Happy
Thank you for your fast response.

Frank
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> PHP Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo