Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decouple UI tests from fixtures by using SQL dump of OmniFixture #349

Merged
merged 1 commit into from Jul 8, 2014

Conversation

diosmosis
Copy link
Member

Modified SetupFixture command so an SQL dump can be created for a fixture (& added docs). Used the command to create an SQL dump of OmniFixture that is used by UITestFixture to setup the database.

This change will allow changes in Fixtures to be made w/o having to alter expected screenshots in UI tests.

To create a new OmniFixture SQL dump, run the following commands:

./console tests:setup-fixture OmniFixture --sqldump=tests/resources/OmniFixture-dump.sql
gzip tests/resources/OmniFixture-dump.sql

This pull request will break UI tests.

… sure OmniFixture can be used w/ SetupFixture, and use SQL dump of OmniFixture in UI tests instead of running OmniFixture every time (so changes in fixtures do not result in changes to screenshots).
diosmosis pushed a commit that referenced this pull request Jul 8, 2014
Decouple UI tests from fixtures by using SQL dump of OmniFixture.

Notes:

  - Add sqldump parameter to SetupFixture command that saves SQL dump of database.
  - Added SQL dump of OmniFixture (gzipped) and used by UITestFixture.
@diosmosis diosmosis merged commit 816c6b2 into master Jul 8, 2014
@diosmosis diosmosis deleted the uitests_fixture_decouple branch July 8, 2014 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant