From: Brian Candler Date: 2008-12-10T00:42:52+09:00 Subject: Re: Ruby Test Frameworks Michael Furmaniuk wrote: > Most of the Ruby Test Frameworks that I have > looked through are all Web or GUI test frameworks, Test::Unit is nice > but I would like to know if there is a Framework for application and > system testing that I have missed. Has anyone used a framework for > application and system testing they could recommend, or even an existing > one that they have used successfully? I don't know of anything specific to 'application and system testing'. If I were you, I'd start with Test::Unit or its bigger brothers Shoulda or Rspec, and see if it does what you actually need. > Some of my initial requirements are: > - Runs on Windows and Linux > - Supports calling external code/scripts, we have Java and C code that > is called for memory utilization and socket testing You can call external programs using backticks, system() or IO.popen: e.g. def test_foo result = `foo` assert_equal 0, $? # exit code assert_match /success/, result # output on stdout end You can call actual C using RubyInline or FFI. > - Can generate system events for create/modify/delete of files and > directories You can do those actions using FileUtils. Or do you mean you want to be *notified* of those sorts of events happening in the filesystem? I'm not sure about that. > - Has some hooks into Windows Registry, IIS and Linux RPM (Nice to > haves but not required) Not sure, I believe there is Win32 API (but I'm a Linux person). > - Can integrate with an IDE (Visual Studio would be nice) I think Test::Unit has some graphical runners (but I'm a CLI person :-) -- Posted via http://www.ruby-forum.com/.