Open Closed

Error on generated Unit test when entity generated with mandatory Navigation Property #1709


User avatar
0
christophe.baille created
  • ABP Framework version: v4.4
  • UI type: Angular
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no
  • Exception message and stack trace:
  • Steps to reproduce the issue:"

When I generate and entity with a navigation property required (as below). Units tests are not working anymore, I did investigate and it seems it is a bug from ABP when generate Unit tests. Data for the mandatory field are not provided.

To solve the issue I added manually this mandatory data on both files DataSeedContributor and ApplicationTests. ABP suite should fill this value when generate entity.


2 Answer(s)
  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    Hi @christophe.baille

    You can ignore my previous answer if you see it on your emails. I'm checking this issue.

  • User Avatar
    0
    yekalkan created
    Support Team Fullstack Developer

    You are right. I've created an internal issue for this. We will fix this in next patch.

    Thanks for reporting. Your question credit is refunded.

Made with ❤️ on ABP v9.1.0-preview. Updated on December 13, 2024, 06:09