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 
  

How to make AutoTest work in Ruby applications

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





PostPosted: Sat Aug 30, 2008 9:34 pm    Post subject: How to make AutoTest work in Ruby applications Reply with quote

I have another newby autotest question.

This action is enabled for Ruby projects, but when I choose it, an
AutoTest tab opens in the output window, and it shows it is running in
the status bar, but nothing happens.

It appears to me that AutoTest only works in Rails projects if I install
the rspec and rspec_rails plugins. How do I make it work in Ruby projects?

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Erno Mononen
Posted via mailing list.





PostPosted: Mon Sep 01, 2008 1:29 pm    Post subject: How to make AutoTest work in Ruby applications Reply with quote

Hi Chris,

Chris Kutler wrote:
Quote:
I have another newby autotest question.

This action is enabled for Ruby projects, but when I choose it, an
AutoTest tab opens in the output window, and it shows it is running in
the status bar, but nothing happens.

I guess it is searching for specs to run and you have only Test/Unit
tests in the project. I also find this behavior strange, but that is how
it works from the command line too -- maybe something we should try to
do differently in the IDE. Uninstalling the rspec gem should help, but
please note that there was a bug that I discovered (thanks to this)
causing AutoTest not to work from the IDE when RSpec wasn't installed. I
just fixed that, please see
http://www.netbeans.org/issues/show_bug.cgi?id=145808.

Quote:

It appears to me that AutoTest only works in Rails projects if I
install the rspec and rspec_rails plugins. How do I make it work in
Ruby projects?

Other than that, by default AutoTest expects that test files are named
test_<something>.rb and that the name of the test class is Test<Something>.

Erno


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> Ruby 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