Open Closed

Custom Controller Testing #5586


User avatar
0
sukhdeep.dhillon created
  • ABP Framework version: v6.0.2
  • UI Type: MVC
  • Database System: EF Core (SQL Server, Oracle)

Hi,

How can I test custom controllers in HttpApi layer. and where should I write tests because there is no test projects for HttpApi layer.


1 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    You can refer to this project: https://github.com/abpframework/abp/blob/dev/framework/test/Volo.Abp.AspNetCore.Mvc.Tests/Volo/Abp/AspNetCore/Mvc/ApiExploring/AbpApiDefinitionController_Tests.cs

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19