I have a series of tests I want to automate, which involve running shell scripts in a "live" environment (i.e. nothing mocked or stubbed), and then verifying the state of the system. I thought that, even though it doesn''t fit the classic definition of "testing", RSpec would still be a handy way to organise the tests. Is it likely to be useful, or am I going against the grain enough that I''d run into problems? martin
On 27 Apr 2010, at 10:36, Martin DeMello wrote:> I have a series of tests I want to automate, which involve running > shell scripts in a "live" environment (i.e. nothing mocked or > stubbed), and then verifying the state of the system. I thought that, > even though it doesn''t fit the classic definition of "testing", RSpec > would still be a handy way to organise the tests. Is it likely to be > useful, or am I going against the grain enough that I''d run into > problems?Should be fine, though you might find cucumber/aruba a nice combination for this too.> > martin > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-userscheers, Matt http://mattwynne.net +447974 430184
On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne <matt at mattwynne.net> wrote:> > Should be fine, though you might find cucumber/aruba a nice combination for > this too.Thanks, aruba looks really interesting! Will explore it. martin
I''ve been using rspec with webrat, for exactly this sort of thing, as detailed here: http://blog.veez.us/2009/09/11/integration-testing-without-cucumber On Apr 27, 2010, at 5:36 AM, Martin DeMello wrote:> I have a series of tests I want to automate, which involve running > shell scripts in a "live" environment (i.e. nothing mocked or > stubbed), and then verifying the state of the system. I thought that, > even though it doesn''t fit the classic definition of "testing", RSpec > would still be a handy way to organise the tests. Is it likely to be > useful, or am I going against the grain enough that I''d run into > problems? > > martin > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users
On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne <matt at mattwynne.net> wrote:> > Should be fine, though you might find cucumber/aruba a nice combination for > this too.Cucumber seems to make things a lot more verbose :( Very ingenious idea, but in practice I prefer specifying stuff in ruby to specifying it in English. martin
On Wed, Apr 28, 2010 at 10:20 PM, Matthew Van Horn <mattvanhorn at gmail.com> wrote:> I''ve been using rspec with webrat, for exactly this sort of thing, as > detailed here: > http://blog.veez.us/2009/09/11/integration-testing-without-cucumberThanks! martin
Joaquin Rivera Padron
2010-Apr-29 14:40 UTC
[rspec-users] testing against a live environment
maybe then check http://github.com/cavalle/steak joaquin 2010/4/29 Martin DeMello <martindemello at gmail.com>> On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne <matt at mattwynne.net> wrote: > > > > Should be fine, though you might find cucumber/aruba a nice combination > for > > this too. > > Cucumber seems to make things a lot more verbose :( Very ingenious > idea, but in practice I prefer specifying stuff in ruby to specifying > it in English. > > martin > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >-- www.least-significant-bit.com -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20100429/b6bdfea9/attachment.html>
perfect :) martin On Thu, Apr 29, 2010 at 8:10 PM, Joaquin Rivera Padron <joahking at gmail.com> wrote:> maybe then check http://github.com/cavalle/steak > > joaquin > > 2010/4/29 Martin DeMello <martindemello at gmail.com> >> >> On Tue, Apr 27, 2010 at 3:32 PM, Matt Wynne <matt at mattwynne.net> wrote: >> > >> > Should be fine, though you might find cucumber/aruba a nice combination >> > for >> > this too. >> >> Cucumber seems to make things a lot more verbose :( Very ingenious >> idea, but in practice I prefer specifying stuff in ruby to specifying >> it in English. >> >> martin >> _______________________________________________ >> rspec-users mailing list >> rspec-users at rubyforge.org >> http://rubyforge.org/mailman/listinfo/rspec-users > > > > -- > www.least-significant-bit.com > > _______________________________________________ > rspec-users mailing list > rspec-users at rubyforge.org > http://rubyforge.org/mailman/listinfo/rspec-users >