Aspnetcore.docs: Add API tests to Integration tests

Created on 5 Mar 2019  Â·  3Comments  Â·  Source: dotnet/AspNetCore.Docs

It's not obvious from the content, but it seems like this only work with MVC projects? What about API projects (that is, projects using ApiController and ControllerBase and only returning like JSON responses, not views).


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

PU Source - Docs.ms doc-enhancement

Most helpful comment

Def need separate topic for API testing.

All 3 comments

AFAIK, the approaches work with web API. Of course, your tests will be a bit different given that the current topic sample uses AngleSharp to dig into view/page responses.

I'll mark this for the Integration Testing project. Engineering will decide what they would like to do at some point. They may want a separate topic for web API testing or perhaps just a separate sample attached to this topic.

Def need separate topic for API testing.

Moved to #16341: Integration tests MASTER issue

Was this page helpful?
0 / 5 - 0 ratings