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?
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?
Cucumber will not clean out the database once the test run completes unless you put some code to do it in an After
block in your env.rb
file 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.
The SQLite database is just a file. Couldn t you just copy over the desired database file (prepopulated with the data you want) prior to starting your tests?
OK, based on what you said, can you do this:
Background: Create verses
Given the following verses exist:
|number|text |
|2999 |hello|
|2998 |hello|
|2997 |hello|
|2996 |hello|
Scenario: A user sees only verses in their reading plan
Given I am signed in as the Reader "Rodreegez"
And I have reading recomendations
When I follow "Read"
Then I should see the following verses:
|number|text |
|2999 |hello|
|2998 |hello|
And I should not see the following verses:
|number|text |
|2997 |hello|
|2996 |hello|
Of course, that rather involves creating the verses from a model using something like Factory Girl. Would that be possible?
Are there database testing tools for python (like sqlunit)? I want to test the DAL that is built using sqlalchemy
I have been tasked with looking for a performance testing solution for one of our Java applications running on a Weblogic server. The requirement is to record production requests (both GET and POST ...
I am using selenium-server , selenium rc for UI testing in my application . My dev box is Windows with FireFox 3.5 and every thing is running fine and cool. But when i try to run selenium tests on my ...
I have an iPhone web app I m producing on a Linux machine. What s the best browser I can use to most closely mimic the feature-limited version of Safari present on the iPhone? (It s a "slimmed down" ...
Just wondering what people are using for code coverage tools when using MS Visual Studio 2008 Pro. We are using the built-in MS test project and unit testing tool (the one that come pre-installed ...
I am testing in selenium and I have a bunch of stuff that happens on page load. I found out about autoit, and I was thinking that it could handle all javascript dialog issues. I was searching around ...
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?
Wondering if there was some sort of crawler we could use to test and re-test everything when changes are made to the web app so we know some new change didn t error out any existing pages. Or maybe a ...