dotnet / dotnet/efcore

Add test coverage for migrations looking at the code generated in Up and Down methods

Open
#27,564 0 comments 0 reactions 0 assignees View on GitHub
area-migrations area-temporal-tables area-test
Dominant language
C#
Stars
14.8k
Forks
3.4k
PR merge metrics
PR metrics pending

Description

Most of the migration tests we have look at the migration SQL and the model that is produced as a result. However we could also use some (end-to-end) test of the migrations code. From what I saw we only have one smoke test, making sure the code compiles.

Example of what the test could help with is in temporal tables - we add a lot of annotations to temporal migration operations, some of those annotations may not be necessary or cause the migration code to be "ugly".

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.