NetBeans Forums

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

Running a single jUnit test in a maven project doesn't use maven surefire in 6.7

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
mkleint
Posted via mailing list.





PostPosted: Fri Jul 03, 2009 11:45 am    Post subject: Running a single jUnit test in a maven project doesn't use maven surefire in 6.7 Reply with quote

I'm currently working on fixing these 2 bugs associated with CoS and
surefire configs. Hopefully it makes it into the patch release.

http://www.netbeans.org/issues/show_bug.cgi?id=168036
http://www.netbeans.org/issues/show_bug.cgi?id=168041

you can workaround the problem by disabling Compile on Save in the
project properties dialog. Then you should have the same behaviour as in 6.5

Milos

Edward Samson wrote:
Quote:
Hi,

When I run/debug a jUnit test class in my maven project, NetBeans 6.7
doesn't use the surefire plugin to run the tests. Unit tests that rely
on some configuration in surefire are now failing.

In my specific case, surefire is configured to set some
developer-specific environment settings like where the native
libraries are installed.

This used to work as expected in NetBeans 6.5. Is there a way to tell
NetBeans 6.7 to use maven to run the jUnit tests instead of its own
test runner?

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