Testing against a live environment

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
[email protected]
http://rubyforge.org/mailman/listinfo/rspec-users

cheers,
Matt

+447974 430184

On Tue, Apr 27, 2010 at 3:32 PM, Matt W. [email protected] 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 Tue, Apr 27, 2010 at 3:32 PM, Matt W. [email protected] 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 :frowning: 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
[email protected] 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-cucumber

Thanks!

martin

perfect :slight_smile:

martin

On Thu, Apr 29, 2010 at 8:10 PM, Joaquin Rivera P.

maybe then check GitHub - cavalle/steak: DISCONTINUED - The delicious combination of RSpec and Capybara for Acceptance BDD

joaquin

2010/4/29 Martin DeMello [email protected]