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

Centralize/Unify Sync and Submit Logic #628

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ctsims
Copy link
Member

@ctsims ctsims commented Aug 11, 2017

A bunch of reworks of the testing infrastructure which centralize how syncs and submissions are working.

Submitting forms to the server now works from the CLI, as well as tests, and syncing is now capable of handling significantly more robust outcomes.

Did this to make it possible to test complex sync behaviors to replicate bugs, but long term we should be able to get more aligned on things like what processing paths exist.

Shouldn't pull until we figure out what to do with the replication in here. It shouldn't really be run with the unit tests.

Includes: https://github.com/dimagi/commcare-core/pull/627/files which should be reviewed first just because it's way easier.


import static org.junit.Assert.assertEquals;

/**
Copy link
Member Author

Choose a reason for hiding this comment

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

note: This is not a proper unit test, but will be run with the unit tests right now. It should get fixed to run only during some sort of integration test cycle.

@amstone326
Copy link
Contributor

@ctsims Is this still relevant / something you want to get merged?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants