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 
  

6.7 RC3 PHPUnit problem

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



Joined: 18 Jun 2009
Posts: 7

PostPosted: Thu Jun 18, 2009 3:02 pm    Post subject: 6.7 RC3 PHPUnit problem Reply with quote

Hello,

I've installed the latest 6.7 RC3 and am wondering if anyone else is seeing an issue with PHP Unit that I'm seeing. When I create a unit test, NetBeans is able to find the unit test source file and run the tests fine. When I close the program and re-open it. It throws the following error when trying to run the test:

Test file for the selected source file was not found.
<<< OK >>>

Has anyone else seen this bug?

Thanks!
Back to top
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Fri Jun 19, 2009 8:16 am    Post subject: 6.7 RC3 PHPUnit problem Reply with quote

risingfish wrote:
Quote:
Hello,



I've installed the latest 6.7 RC3 and am wondering if anyone else is seeing an issue with PHP Unit that I'm seeing. When I create a unit test, NetBeans is able to find the unit test source file and run the tests fine. When I close the program and re-open it. It throws the following error when trying to run the test:



Test file for the selected source file was not found.

<<< OK >>>


To find the relation between source and its test there should be true:
- source file is located in "Source Files" folder (or its subfolders)
- its test file is located in "Test Files" folder (or its subfolders)
- source file contains at least one class (e.g. "MyClass")
- test file contains at least one class named with suffix "Test" (e.g.
"MyClassTest")

After creating new unit test all above should be true. Editing and next
development of both source and test should never break the above rules.
So, check it. If you think that everything is right then please file an
issue [1] for that?

thanks,
Radek
[1] http://www.netbeans.org/community/issues
Quote:


Has anyone else seen this bug?



Thanks!










Back to top
risingfish



Joined: 18 Jun 2009
Posts: 7

PostPosted: Fri Jun 19, 2009 2:18 pm    Post subject: Reply with quote

Thank Radek,

The file structure looks as it should with the corresponding Test folder and test class (under the correct path) for the class I'm testing. I'm going to set up a small separate project that is fairly simple to doa little more testing on. No reason to bug the NetBeans devs with an invalid bug. Smile Does NetBeans keep any logs?

Thanks!
Back to top
View user's profile Send private message
risingfish



Joined: 18 Jun 2009
Posts: 7

PostPosted: Fri Jun 19, 2009 3:09 pm    Post subject: Reply with quote

I did some initial testing with a new simpler project (the one I'm working on is our largest project with many many files and folders). The PHPUnit testing works flawlessly with no hiccups in the simpler one. If there are logs I'd like to tail them and watch for an error.
Back to top
View user's profile Send private message
radek matous
Posted via mailing list.





PostPosted: Fri Jun 19, 2009 3:56 pm    Post subject: 6.7 RC3 PHPUnit problem Reply with quote

risingfish wrote:
Quote:
Thank Radek,

The file structure looks as it should with the corresponding Test folder and test class (under the correct path) for the class I'm testing. I'm going to set up a small separate project that is fairly simple to doa little more testing on. No reason to bug the NetBeans devs with an invalid bug. Smile
actually "goto test" functionality should work identically as Goto Type
dialog (Ctrl+O). If you had class MyClass and MyClassTest then after
pressing Ctrl+O and typing MyClass, both classes should be found. If not
then don't hesitate and report it
Quote:
Does NetBeans keep any logs?

you can explicitly enable logging in php.editor by modifing
netbeans_default_options in $NETBEANS/etc/netbeans.conf file by adding
-J-Dorg.netbeans.modules.php.editor.level=400

netbeans
|-- bin
|-- etc
|-- netbeans.clusters
|-- *netbeans.conf*
`-- netbeans.import
|-- harness
|-- ide11
|-- nb6.7
|-- php1
.

netbeans_default_options="-J-client -J-Xss2m -J-Xms32m
-J-XX:PermSize=32m -J-XX:MaxPermSize=200m
-J-Dnetbeans.logger.console=true
*-J-Dorg.netbeans.modules.php.editor.level=400* -J-ea
-J-Dapple.laf.useScreenMenuBar=true -J-Dsun.java2d.noddraw=true"

Radek
Back to top
Tomas Mysik
Posted via mailing list.





PostPosted: Mon Jun 22, 2009 11:15 am    Post subject: 6.7 RC3 PHPUnit problem Reply with quote

Hi,

Dne pátek 19 června 2009 17:09:16 risingfish napsal(a):
Quote:
I did some initial testing with a new simpler project (the one I'm working
on is our largest project with many many files and folders). The PHPUnit
testing works flawlessly with no hiccups in the simpler one. If there are
logs I'd like to tail them and watch for an error.

I'm afraid that you won't find any error in your case - the error in the log
would be like "No test found for class MyClass" - that is not very helpful.
Sometime, it will help to try a clean userdir [1] - could you try it, please?

Thanks,
Tomas
[1] http://wiki.netbeans.org/FaqAlternateUserdir
--
Tomas Mysik
address-removed
Back to top
risingfish



Joined: 18 Jun 2009
Posts: 7

PostPosted: Mon Jun 22, 2009 6:27 pm    Post subject: Reply with quote

I should have a little free time to do this on Wednesday (we're in trying to reach a milestone for tomorrow Smile )
Back to top
View user's profile Send private message
hco



Joined: 30 Jun 2009
Posts: 1

PostPosted: Tue Jun 30, 2009 9:24 pm    Post subject: Reply with quote

I can confirm this issue.

I set up a new userdir, actually by deleting my old one, but did not help.

Then I created a small new project for testing purposes, and it worked.

Maybe you can provide me with some hints on how the corresponding testfile is searched, so that I can go on investigating?

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





PostPosted: Wed Jul 01, 2009 10:38 am    Post subject: 6.7 RC3 PHPUnit problem Reply with quote

Hi,

Dne úterý 30 června 2009 23:24:28 hco napsal(a):
Quote:
I can confirm this issue.
I set up a new userdir, actually by deleting my old one, but did not help.
Then I created a small new project for testing purposes, and it worked.
Maybe you can provide me with some hints on how the corresponding testfile
is searched, so that I can go on investigating?

please, it would help us a lot, if you could create a sample project we can
play with. Report an issue [1] and attach such project to it. If there are
some exact steps to reproduce, please, write them there as well.

Thanks a lot,
Tomas
[1] http://www.netbeans.org/community/issues
--
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