Breaking News: Grepper is joining You.com. Read the official announcement!
Check it out

Persistence integration tests

Pragya Keshap answered on March 1, 2023 Popularity 1/10 Helpfulness 1/10

Contents


More Related Answers

  • what is a persistence layer
  • Writing persistence tests

  • Persistence integration tests

    0

    Persistence integration tests provide assurances that the schema assumed by the code matches that available in the data store.

    In the case that an ORM is in use, these tests also give confidence that any mappings configured in the tool are compatible with the result sets coming back.

    Modern ORMs are very sophisticated in terms of caching and only flushing when necessary. It is important to structure tests such that transactions close in between preconditions, actions and assertions to be sure data makes a full round trip.

    Since most data stores exist across a network partition, they are also subject to timeouts and network failures. Integration tests should attempt to verify that the integration modules handle these failures gracefully. 

    Popularity 1/10 Helpfulness 1/10 Language whatever
    Source: Grepper
    Link to this answer
    Share Copy Link
    Contributed on Mar 01 2023
    Pragya Keshap
    0 Answers  Avg Quality 2/10


    X

    Continue with Google

    By continuing, I agree that I have read and agree to Greppers's Terms of Service and Privacy Policy.
    X
    Grepper Account Login Required

    Oops, You will need to install Grepper and log-in to perform this action.