You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the acceptance tests in repository-tests are using shared fixtures to run tests on different databases.
A model might have several relations.
But then the test cases have to contain a lots of relevant attribute to make all databases pass.
Examples
For example, a expected test result in belongsTo-inclusion test file:
Clean up the fixtures. Remove those not being used properties ( such as is_shipped)
Should find a way that model classes were created dynamically by a factory function.
Stretch goal
Separate the relations in each models so that we only need the necessary properties when we test a certain relation. For example, now Customer hasMany Orders, hasMany Customers, belongsTo a Customer, and hasOne Address. These should be de-centered.
The text was updated successfully, but these errors were encountered:
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
Suggestion
follow up issue of #4148.
Currently, the acceptance tests in
repository-tests
are using shared fixtures to run tests on different databases.A model might have several relations.
But then the test cases have to contain a lots of relevant attribute to make all databases pass.
Examples
For example, a expected test result in belongsTo-inclusion test file:
parentId
andis_shipped
are redundant here.Acceptance criteria
is_shipped
)Stretch goal
Customer
hasManyOrder
s, hasManyCustomer
s, belongsTo aCustomer
, and hasOneAddress
. These should be de-centered.The text was updated successfully, but these errors were encountered: