Starts in:
1 DAY
10 HRS
21 MIN
11 SEC
Starts in:
1 D
10 H
21 M
11 S
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 November 20, 2024, 13:06