
| View previous topic :: View next topic |
| Author |
Message |
Chris Kutler Posted via mailing list.
|
Posted: Fri Aug 29, 2008 11:18 pm Post subject: trying to understand how to use autotest |
|
|
I am trying to learn how to use the autotest menu action. I am comming
from a different perspective then most people. I don't know much about
zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest and
trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is, it
does not run the tests at all.
+ Autotest menu action does work with MRI Ruby. That is, it does run the
tests when changes are saved.
+ Autotest does not work unless the project has the rspec and
rspec_rails plugins installed. Otherwise you get "Autotest style
autotest/rails_rspec doesn't seem to exist. Aborting."
+ If you want Autotest to run your unit tests, you must delete the specs
folder, even if it is empty. Otherwise, the autotest runs but does
nothing if all your tests are unit tests. If you have the spec folder,
then autotest only runs rspec tests, if they exist.
========================================================================
---------------------------------------------------------------------
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.
|
Posted: Mon Sep 01, 2008 1:42 pm Post subject: trying to understand how to use autotest |
|
|
Chris Kutler wrote:
| Quote: | I am trying to learn how to use the autotest menu action. I am comming
from a different perspective then most people. I don't know much about
zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest and
trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is, it
does not run the tests at all.
|
I don't think this is true; at least for me AutoTest with JRuby works on
most of the projects I've tried it with -- the only exception being the
RubyGems project, where it runs just part of the tests.
| Quote: |
+ Autotest menu action does work with MRI Ruby. That is, it does run
the tests when changes are saved.
|
Right.
| Quote: |
+ Autotest does not work unless the project has the rspec and
rspec_rails plugins installed. Otherwise you get "Autotest style
autotest/rails_rspec doesn't seem to exist. Aborting."
|
This is true in a Rails project, but only when the target platform has
rspec installed. In other words, it works either without the rspec gem,
or with both the rspec and rspec_rails plugins installed.
| Quote: |
+ If you want Autotest to run your unit tests, you must delete the
specs folder, even if it is empty. Otherwise, the autotest runs but
does nothing if all your tests are unit tests. If you have the spec
folder, then autotest only runs rspec tests, if they exist.
|
Or alternatively uninstalling rspec should help too.
Erno
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Brandon Hauff Posted via mailing list.
|
Posted: Tue Sep 02, 2008 1:46 pm Post subject: trying to understand how to use autotest |
|
|
Hi Chris,
I have used Autotest through Netbeans in 6.1 using only Test/Unit and no
Rspec gem or Rspec plugins.
Thanks,
Brandon
| Quote: | -----Original Message-----
From: Chris.Kutler@Sun.COM [mailto:Chris.Kutler@Sun.COM]
Sent: Friday, August 29, 2008 6:19 PM
To: users@ruby.netbeans.org
Subject: trying to understand how to use autotest
I am trying to learn how to use the autotest menu action. I
am comming
from a different perspective then most people. I don't know
much about
zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest and
trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is, it
does not run the tests at all.
+ Autotest menu action does work with MRI Ruby. That is, it
does run the
tests when changes are saved.
+ Autotest does not work unless the project has the rspec and
rspec_rails plugins installed. Otherwise you get "Autotest style
autotest/rails_rspec doesn't seem to exist. Aborting."
+ If you want Autotest to run your unit tests, you must
delete the specs
folder, even if it is empty. Otherwise, the autotest runs but does
nothing if all your tests are unit tests. If you have the
spec folder,
then autotest only runs rspec tests, if they exist.
==============================================================
==========
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Tue Sep 02, 2008 6:12 pm Post subject: trying to understand how to use autotest |
|
|
scroll.....
Erno Mononen wrote:
| Quote: | Chris Kutler wrote:
| Quote: | I am trying to learn how to use the autotest menu action. I am
comming from a different perspective then most people. I don't know
much about zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest and
trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is, it
does not run the tests at all.
|
I don't think this is true; at least for me AutoTest with JRuby works
on most of the projects I've tried it with -- the only exception being
the RubyGems project, where it runs just part of the tests.
| I must be doing something wrong. I have build Build 20080902133756. I
have a Rails project. I have unit tests (file names *_test.rb and
classnames *Test). I have tested with the RSpec gem installed and
uninstalled.
If the project is set to Built-in JRuby and I run Autotest, I get:
Exception in thread "main" C:/Program Files/NetBeans
3654/netbeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in
`require': no such file to load -- autotest (LoadError)
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1
...internal jruby stack elided...
from Kernel.require(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40)
from (unknown).(unknown)(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1)
from (unknown).(unknown)(:1)
If I set the platform to MRI Ruby 1.8.6, the AutoTest command works.
That is, the Test Results window opens, my tests runs, and the AutoTest
status shows it is running.
Any suggestions as to what I might have done to break it for JRuby? This
is a fresh install with a new userdir.
---------------------------------------------------------------------
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.
|
Posted: Tue Sep 02, 2008 7:06 pm Post subject: trying to understand how to use autotest |
|
|
Chris Kutler wrote:
| Quote: |
scroll.....
Erno Mononen wrote:
| Quote: | Chris Kutler wrote:
| Quote: | I am trying to learn how to use the autotest menu action. I am
comming from a different perspective then most people. I don't know
much about zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest
and trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is, it
does not run the tests at all.
|
I don't think this is true; at least for me AutoTest with JRuby works
on most of the projects I've tried it with -- the only exception
being the RubyGems project, where it runs just part of the tests.
| I must be doing something wrong. I have build Build 20080902133756. I
have a Rails project. I have unit tests (file names *_test.rb and
classnames *Test). I have tested with the RSpec gem installed and
uninstalled.
If the project is set to Built-in JRuby and I run Autotest, I get:
Exception in thread "main" C:/Program Files/NetBeans
3654/netbeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in
`require': no such file to load -- autotest
|
Does the JRuby 1.1.4 platform have the ZenTest gem installed? Can't
think of now anything else that could be causing this.
Erno
| Quote: | (LoadError)
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1
...internal jruby stack elided...
from Kernel.require(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40)
from (unknown).(unknown)(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1)
from (unknown).(unknown)(:1)
If I set the platform to MRI Ruby 1.8.6, the AutoTest command works.
That is, the Test Results window opens, my tests runs, and the
AutoTest status shows it is running.
Any suggestions as to what I might have done to break it for JRuby?
This is a fresh install with a new userdir.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
Chris Kutler Posted via mailing list.
|
Posted: Tue Sep 02, 2008 7:16 pm Post subject: trying to understand how to use autotest |
|
|
gulp! I forgot to do that. I will get back to you.
Erno Mononen wrote:
| Quote: | Chris Kutler wrote:
| Quote: |
scroll.....
Erno Mononen wrote:
| Quote: | Chris Kutler wrote:
| Quote: | I am trying to learn how to use the autotest menu action. I am
comming from a different perspective then most people. I don't know
much about zentest, and all I know about autotest is what I read in
http://wiki.netbeans.org/RubyTesting#section-RubyTesting-AutoTest
and trying things out.
Which of the following are true, and which are false
+ Autotest menu action does not work with bundled JRuby. That is,
it does not run the tests at all.
|
I don't think this is true; at least for me AutoTest with JRuby
works on most of the projects I've tried it with -- the only
exception being the RubyGems project, where it runs just part of the
tests.
| I must be doing something wrong. I have build Build 20080902133756. I
have a Rails project. I have unit tests (file names *_test.rb and
classnames *Test). I have tested with the RSpec gem installed and
uninstalled.
If the project is set to Built-in JRuby and I run Autotest, I get:
Exception in thread "main" C:/Program Files/NetBeans
3654/netbeans/ruby2/jruby-1.1.4/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34:in
`require': no such file to load -- autotest
|
Does the JRuby 1.1.4 platform have the ZenTest gem installed? Can't
think of now anything else that could be causing this.
Erno
| Quote: | (LoadError)
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40
from C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1
...internal jruby stack elided...
from Kernel.require(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:40)
from (unknown).(unknown)(C:/Program Files/NetBeans
3654/netbeans/ruby2/nb_autotest_loader.rb:1)
from (unknown).(unknown)(:1)
If I set the platform to MRI Ruby 1.8.6, the AutoTest command works.
That is, the Test Results window opens, my tests runs, and the
AutoTest status shows it is running.
Any suggestions as to what I might have done to break it for JRuby?
This is a fresh install with a new userdir.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org
|
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@ruby.netbeans.org
For additional commands, e-mail: users-help@ruby.netbeans.org |
|
| Back to top |
|
 |
|
|
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
|
|
|
|
|