Skip to content

Confusing to refer users to *Integration* testing for ASP .NET Core when this is a *unit* test page #15752

Closed

Description

@cbrit

The title of this page is "Unit testing C# in .NET Core...", but near the top of the page there is a line that reads:

"This article is about testing a .NET Core project. If you're testing an ASP.NET Core project, see Integration tests in ASP.NET Core."

If a user is on this page they are probably looking for a way to unit test ASP .NET Core (like me), not integration test. There are pages in the docs for unit testing Razor Pages and MVC apps, so shouldn't those be linked instead?


Document Details

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

Activity

  1. changed the title [-]Confusing to link refer users to *Integration* testing for ASP .NET Core when this is a *unit* test page[/-] [+]Confusing to refer users to *Integration* testing for ASP .NET Core when this is a *unit* test page[/+] on Nov 7, 2019
  2. Thraka commented on Nov 8, 2019

    @Thraka
    Contributor

    This is true. The ASP.NET docset shouldn't be pulling this article into their TOC and instead should have their own article. /cc @Rick-Anderson

  3. added and removed
    ⌚ Not Triaged
    on Nov 8, 2019
  4. ardalis commented on Nov 8, 2019

    @ardalis
    Contributor

    To be fair, there's not much to unit test in an ASP.NET Core app that's specific to ASP.NET Core (not the app's business logic) and which isn't better-tested using integration tests outlined in the referenced doc article.

  5. Thraka commented on Nov 14, 2019

    @Thraka
    Contributor

    Yes I know. But with how people find articles and the context they assume they are written in, add in the confusing ASP.NET Core vs .NET Core situation, and we need explicit contextual articles. Even if the only difference is titles and some wording or project names.

    (Or have both contexts described in the same article)

  6. Rick-Anderson commented on Nov 14, 2019

    @Rick-Anderson
    Contributor

    The ASP.NET docset shouldn't be pulling this article into their TOC

    Unit testing C# in .NET Core using dotnet test and xUnit doesn't belong in our TOC

    and instead should have their own article.

    We do.

    That link shouldn't be at the top of the page. At most, it should be at the bottom under Additional resources

  7. Rick-Anderson commented on Nov 14, 2019

    @Rick-Anderson
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions