How to integration test two Rails apps -


we have 2 separate ruby on rails apps, 1 accepts uploaded files, other produces files uploads other app received.

we're trying put end-to-end blackbox regression , integration tests demonstrate when upload file first app, can count on getting file out of other app.

the question how script this, 2 separate databases reset seeded values, 2 servers fired , capybara visits 2 separate "web sites."

so far in building , testing each app have relied on rails magic makes things "just work," dealing separate databases, separate server ports , other unknown wrinkles looking stumbling block.

has written best practices kind of testing? examples of how automate kind of integration testing?

you can put both apps online heroku. use sauce_ruby gem saucelabs.com connector rspec , capybara run tests agains apps. run heroku run rake db:reset reseed (with seed.rb) data before tests(you can script this). sauce ruby


Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -