Skip to content

Cargo doctest output in nightly is incorrect #39592

@SergioBenitez

Description

@SergioBenitez
Contributor

In the latest nightly, the logged output for doctests has changed to what appears to be a terser version. Unfortunately, the output is incorrect. The output shows every doctest as occurring in the same file, regardless of where the doctest is. Furthermore, doctest logging no longer includes the module/item where the doctest was declared, which, in my opinion, is a rather large usability regression.

Here is what the new, buggy output looks like:

test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 104 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 116 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 125 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 13 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 130 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 14 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 103 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 133 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 112 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 117 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 140 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 110 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 101 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 123 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 113 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 144 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 120 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 108 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 17 ... ignored
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 101 ... ok
test /home/travis/build/SergioBenitez/Rocket/lib/src/lib.rs - line 112 ... ok

You can find the complete output in the Travis logs for a recent build of Rocket.

Activity

alexcrichton

alexcrichton commented on Feb 6, 2017

@alexcrichton
Member
GuillaumeGomez

GuillaumeGomez commented on Feb 6, 2017

@GuillaumeGomez
Member

Hum, interesting. Looking to find why.

added 2 commits that reference this issue on Feb 8, 2017
472494a
722baed
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @alexcrichton@SergioBenitez@GuillaumeGomez

        Issue actions

          Cargo doctest output in nightly is incorrect · Issue #39592 · rust-lang/rust