Skip to content

rustdoc: Tracking issue for heavily increasing the GUI test coverage #42018

Closed

Description

@GuillaumeGomez

Since we now have a more complete way to compare two HTML contents, I think we can now strongly reinforce rustdoc's tests (which are a bit weak and lacking for now).

cc @rust-lang/docs

Activity

  1. added
    T-rustdoc
    A-docs
    on May 15, 2017
  2. changed the title [-]Add a shitload of tests to rustdoc[/-] [+]Add (a lot of) tests to rustdoc[/+] on May 15, 2017
  3. added
    T-dev-tools
    and removed
    A-docs
    on May 18, 2017
  4. added
    E-needs-test
    on Jun 23, 2017
  5. added
    C-enhancement
    on Jul 27, 2017
  6. QuietMisdreavus commented on Nov 4, 2017

    @QuietMisdreavus
    Contributor

    Some ideas:

    • src/librustdoc/html/markdown.rs already has a #[cfg(test)] block, but it doesn't test the "hide lines of code with # " behavior.
    • src/librustdoc/test.rs could use some tests to verify how it adds attributes to the test, whether it wraps tests in a fn main(), things like that.
  7. added 2 commits that reference this issue on Feb 16, 2018
  8. QuietMisdreavus commented on Mar 19, 2018

    @QuietMisdreavus
    Contributor

    One thing i'd like to see (that will probably need cooperation from some rustbuild compiletest experts) is the ability to test the stdout-printing behavior of rustdoc in various situations. We don't have UI tests for rustdoc the same way the compiler does, so right now there's no place for these in the testing setup.

  9. camelid commented on Oct 12, 2020

    @camelid
    Member

    ping: Is this still an issue?

  10. GuillaumeGomez commented on Oct 12, 2020

    @GuillaumeGomez
    MemberAuthor

    Still waiting on #70533.

  11. added
    A-testsuite
    on Nov 4, 2020
  12. rylev commented on Jun 17, 2021

    @rylev
    Contributor

    Triage: #70533 was superseded by #79979 which has been merged. @GuillaumeGomez can this be closed? If not, we should probably add more detail to what kind of tests need to be added since this issue is not very actionable right now.

  13. GuillaumeGomez commented on Jun 17, 2021

    @GuillaumeGomez
    MemberAuthor

    Still far from done unfortunately. Please keep it open. As for the kind of tests, it's GUI ones. But being more precise is a bit complicated as we're still changing the front-end quickly for the moment.

  14. removed
    T-dev-tools
    on Jan 18, 2022
  15. added
    C-tracking-issue
    and removed
    C-enhancement
    E-needs-test
    on Sep 9, 2024
  16. added
    E-help-wanted
    S-tracking-needs-summary
    on Oct 10, 2025
  17. changed the title [-]Add (a lot of) tests to rustdoc[/-] [+]rustdoc: Tracking issue for heavily increasing the GUI test coverage[/+] on Oct 10, 2025
  18. GuillaumeGomez commented on Nov 5, 2026

    @GuillaumeGomez
    MemberAuthor

    We now have a full GUI testsuite so can be closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-testsuiteC-tracking-issueE-help-wantedS-tracking-needs-summaryT-rustdoc

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions