I use cucumber to run integration tests.
I have a very large (30,000+ record) stardard setup for testing.
How can I leave that in the test.sqlite3 database without re-loading it ever?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Cucumber will not clean out the database once the test run completes unless you put some code to do it in an
Afterblock in yourenv.rbfile to do this.If the data never changes then load it into the db once and assume it is there when you run cucumber. If you change some data in the db in your scenarios then make sure that you use transactional fixtures and those changes will be rolled back when the scenario finishes.