FeaturesPluginsDocs & SupportCommunityPartners

NetBeans Forums

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

PHPUnit code coverage on a non-class file

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



Joined: 06 Oct 2009
Posts: 4

PostPosted: Wed Oct 07, 2009 9:36 pm    Post subject: PHPUnit code coverage on a non-class file Reply with quote

I'm trying to get PHPUnit's code coverage working in NetBeans, as I really like the interface it provides. I'm running into an issue where my class files are being properly reported, but a procedural file I have is showing 0% coverage, and 0 Total as well as Not Executed lines, despite this file being exercised by the test suite. If I directly generate a coverage report through phpunit using the --coverage-html option it correctly generates a report for the file stating a coverage of 46/52 lines.

I've tried this in the 6.8M1 version, as well as a recent dev build (Build 2009-10-07_21-04-03), both with the same effect.

Am I missing something, or is this a bug?

Thanks.
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Thu Oct 08, 2009 1:22 pm    Post subject: PHPUnit code coverage on a non-class file Reply with quote

Hi,

Dne středa 07 října 2009 23:36:26 benzittlau napsal(a):
Quote:
I'm trying to get PHPUnit's code coverage working in NetBeans, as I really
like the interface it provides. I'm running into an issue where my class
files are being properly reported, but a procedural file I have is showing
0% coverage, and 0 Total as well as Not Executed lines, despite this file
being exercised by the test suite. If I directly generate a coverage
report through phpunit using the --coverage-html option it correctly
generates a report for the file stating a coverage of 46/52 lines.



I've tried this in the 6.8M1 version, as well as a recent dev build (Build
2009-10-07_21-04-03), both with the same effect.



Am I missing something, or is this a bug?

it's a bug, please, report it (php/phpunit) [1] and attach your PHP file as
well as the XML file with the code coverage.

Thanks a lot,
Tomas
[1] http://www.netbeans.org/community/issues
--
Tomas Mysik
address-removed
Back to top
benzittlau



Joined: 06 Oct 2009
Posts: 4

PostPosted: Fri Oct 09, 2009 2:39 am    Post subject: Reply with quote

I've been looking around to find this but haven't had much luck. Where exactly does netbeans direct the .xml code coverage report?

Thanks.
Back to top
View user's profile Send private message
Tomas Mysik
Posted via mailing list.





PostPosted: Fri Oct 09, 2009 1:19 pm    Post subject: PHPUnit code coverage on a non-class file Reply with quote

Hi,

Dne pátek 09 října 2009 04:39:24 benzittlau napsal(a):
Quote:
I've been looking around to find this but haven't had much luck. Where
exactly does netbeans direct the .xml code coverage report?

NetBeans deletes that file automatically; I meant XML log produced by PHPUnit
run manually from command line (I can do it myself, it's not problem, just
report it).

Thanks,
Tomas
--
Tomas Mysik
address-removed
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 can attach files in this forum
You can download files in this forum


Powered by phpBB