On 5/6/07, aslak hellesoy <aslak.hellesoy at gmail.com>
wrote:> It looks like the lates NetBeans milestone can run RSpec specifications:
>
> http://wiki.netbeans.org/wiki/view/NewAndNoteWorthyMilestone9
>
> I haven''t tried it myself, but if anyone else does please tell us
> about your experience.
>
Ok, here is mine. I''m a NetBeans newb.
I downloaded it from
http://bits.netbeans.org/download/6.0/milestones/m9/latest/installers/
I also found some RSpec info here:
http://wiki.netbeans.org/wiki/view/RubyRecentChanges
It was a rather lengthy download (150 Mb) and install process - turns
out I get a whole J2EE server bundled with the IDE :-/. Mmmm EJBs...
:-)
Firing up NetBeans was a breeze, and I easily found the "new project"
button. I selected "Existing Ruby project" and navigated my way to the
RSpec core.
First surprise: I''m asked to say where my source code folder is, and
my *tests*. First of all, I wished it guessed that for me, but since
it had to ask, it should also ask me where my *specs* are. Anyway, I
selected the spec folder for the "test" folder.
Now that I had my project up I navigated to one of RSpec''s own specs
(translator_spec.rb). I double clicked the file, got the source up in
the browser and hit the big green "play"-like button in the toolbar. I
was presented with a very confusing dialog box that asked me to select
the project''s "Main file". Then I looked at the menus and
found out
that SHIFT-F6 will run the file I''m in.
I did, and it ran the spec! The output was just like any old console
output though - no gui progress bar or anything.
However, when I deliberately made one of the examples fail, I was able
to click on the backtrace and be taken to the source code. Backtrace
linking works for any old Ruby code though, so this doesn''t seem like
an RSpec feature.
I was unable to find out how to change the RSpec settings (like using
a custom spec.opts file).
My overall impression? It''s cool that NetBeans adds RSpec support, but
I couldn''t find any RSpec-specific features beyond basic Ruby support.
Aslak
> Aslak
>