[rspec-users] scenarios on production data

Jonathan Linowes jonathan at parkerhill.com
Mon Sep 8 13:51:33 EDT 2008


On Sep 8, 2008, at 12:35 PM, Dan North wrote:

> 2008/9/8 Jonathan Linowes <jonathan at parkerhill.com>
> On 4 Sep 2008, at 18:55, Jonathan Linowes wrote:
>
> I'm just thinking out loud here...
> It could be useful to have a way to run scenarios on a copy of a  
> fully populated production database, as an alternative to normal use.
> Not sure how that'd work, maybe replace the Given's but leave the  
> Whens and Thens?
>
>
>
> On Sep 5, 2008, at 3:11 PM, Matt Wynne wrote:
>
> Can you give us a concrete example of something that you're worried  
> might go wrong?
>
> Here's one example: lets say my app is a specialized CMS, where  
> account owners can setup their own projects, pages and forms. I'd  
> like to run scenarios against setups that users have created.  
> Thinking further, wouldn't it be neat to make this a user feature,  
> eg via "Validate This Project" button
>
> That sounds like it might be a useful feature to implement - say  
> export project (and all its dependencies) and a corresponding  
> import project feature. Then you could export a project from the  
> production environment and have it as canned data to pre-populate  
> your project scenarios. Also your users could then create offline  
> backups of their projects.
>
> That would be specific to your application though, and not an rspec  
> feature. Or am I missing something?

right, i'm not looking for an rspec feature, just suggestions how to  
manage running against production data. Export/import utilities may  
be the way to go. Or maybe export to yaml, and run stories with those  
as fixtures?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://rubyforge.org/pipermail/rspec-users/attachments/20080908/2ec82eb8/attachment.html>


More information about the rspec-users mailing list