Running rspec against multiple targets

Posted by kaerast on Stack Overflow See other posts from Stack Overflow or by kaerast
Published on 2010-04-08T15:15:07Z Indexed on 2010/04/08 16:03 UTC
Read the original article Hit count: 248

Filed under:
|
|

I've written an rspec test using Watir against a web application and it's running fine. However, I now want to be able to run this test against the web application running on different domain names.

My initial thought was that I'd be able to pass a value to spec at the command line to set a variable within my script, but I can't see any easy method of doing this. So my second thought was that I might need to add an array of domains into my script and have it test all of them - but I don't always want to test every domain, and the domains are constantly changing as we add and remove sites to be tested.

What are my options for allowing the choice of targets I want?

© Stack Overflow or respective owner

Related posts about ruby

Related posts about rspec