PhpUnit Testing warning

Discussion of testing theory and practice, including methodologies (such as TDD, BDD, DDD, Agile, XP) and software - anything to do with testing goes here. (Formerly "The Testing Side of Development")

Moderator: General Moderators

Post Reply
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

PhpUnit Testing warning

Post by VladSun »

If I create a test file containing only data-provided (i.e. using the @dataProvider annotation) tests, then the whole test is marked as "no-tests-to-run" together with OK for the data-provided test.

Using Netbeans, PhpUnit plugin.

Solutions? I just put an empty no-data-provided test method and it's OK, but ...
There are 10 types of people in this world, those who understand binary and those who don't
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Re: PhpUnit Testing warning

Post by Weirdan »

Seems to be a bug to me. File a bug report: https://github.com/sebastianbergmann/phpunit/issues
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: PhpUnit Testing warning

Post by josh »

Try running it outside of netbeans before filing a bug. Also can you show the test case class in question? I'd agree it seems like a bug though. I know if Sebastian doesn't agree he'll usually just close the issue w/o explanation though which can be frustrating sometimes, so I always try to double check before filing a bug report and not hearing back for weeks
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: PhpUnit Testing warning

Post by VladSun »

Seems like it's a Netbeans bug :(
No warnings displayed in the console.
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply