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

Use data factories for testing #12

Merged

Conversation

mars-f
Copy link
Contributor

@mars-f mars-f commented Jun 19, 2017

Using carefully-crafted test data fixtures can lead to brittle tests and
difficult-to-construct test scenarios in our integration tests.

Switch the test suite to use a data factory instead of static fixtures
to mock Phabricator responses.

@mars-f mars-f requested review from zalun and purelogiq June 19, 2017 12:47
@mars-f mars-f force-pushed the wip-use-data-factories-for-testing branch 4 times, most recently from 530c955 to 9a86593 Compare June 19, 2017 13:38
@purelogiq
Copy link
Contributor

Does this invalidate #10?

@mars-f mars-f force-pushed the wip-use-data-factories-for-testing branch from 02f291a to f05743a Compare June 19, 2017 20:55
@mars-f mars-f changed the title WIP use data factories for testing Use data factories for testing Jun 19, 2017
@mars-f mars-f force-pushed the wip-use-data-factories-for-testing branch from f05743a to 81f20bc Compare June 19, 2017 21:35
@mars-f
Copy link
Contributor Author

mars-f commented Jun 19, 2017

@purelogiq #10 is still valid.

Copy link
Contributor

@purelogiq purelogiq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some rebase conflits

mars-f added 2 commits June 20, 2017 10:13
Using carefully-crafted test data fixtures can lead to brittle tests and
difficult-to-construct test scenarios in our integration tests.

Switch the test suite to use a data factory instead of static fixtures
to mock Phabricator responses.
@mars-f mars-f force-pushed the wip-use-data-factories-for-testing branch from 81f20bc to 9295ec7 Compare June 20, 2017 14:19
@mars-f mars-f merged commit 224def3 into mozilla-conduit:master Jun 20, 2017
@mars-f mars-f deleted the wip-use-data-factories-for-testing branch June 20, 2017 16:08
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.

2 participants