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

Write integration tests for distributed data models #116

Open
asishallab opened this issue May 11, 2020 · 0 comments
Open

Write integration tests for distributed data models #116

asishallab opened this issue May 11, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@asishallab
Copy link
Member

Use the latest development branch and write integration tests for Cenzontle Web Service Data Models.

Test all CRUD API functions, including search, sort, and pagination. Also test associations.

The tests should make sure that a single "read many" is able to fetch records from different servers. Also tests distributed associations in that matter. Provide tests for the API functions / arguments:

probably already included, but just to be sure:

  • skip-check-existence-of-association
  • exclude-adapters

Put all tests into a single describe block, and make sure that at the end of the test a cleanup is done, that removes all created records from the respective databases. The setup should be in the state identical to before this describe block starts.

To clean up consider using an after block as made available in mocha / chai tests.

@asishallab asishallab added the enhancement New feature or request label May 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants