NetBeans Forums

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

Cannot "Test File" in "Other Test Sources" of maven project

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



Joined: 13 Dec 2010
Posts: 2

PostPosted: Mon Dec 13, 2010 10:14 pm    Post subject: Cannot "Test File" in "Other Test Sources" of maven project Reply with quote

I am having problems running a test file when it is in the "Other Test Sources" of a maven project.

If I right-click the file under "Other Test Sources" and select "Test File", I get "No tests executed".

I cannot get any files under "Other Test Sources" to run individually, but they all run when I right-click on the project and select "Test" to run all tests in the project.

So to explain how I am putting the classes in the "Other Test Sources" I'm using the org.codehaus.mojo:build-helper-maven-plugin:1.5 plugin and it's "add-test-source" goal. This is because my project actually has different test sources that we'd like to keep separate, so I need to have this for now.

If i switch my unit tests to be the regular "testSourceDirectory" then I can run those through the right-click "Test File" option.

I have also ran the "Test File" option with the "-X" flag, and what I get from that is the "test" property ends up being blank (empty string) so I'm thinking the "className" property is not being populated when a class is in the "Other Sources Directory".

So with all that background, I'm just wondering if anyone can tell if I'm doing anything wrong or if this is just some kind of bug (maybe already a known bug)?

Any feedback on this would be greatly appreciated.

Thanks
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans 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
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