Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Print diff in failing doctest #370

Closed
KristofferC opened this issue Dec 13, 2016 · 2 comments
Closed

Print diff in failing doctest #370

KristofferC opened this issue Dec 13, 2016 · 2 comments

Comments

@KristofferC
Copy link
Member

Throwing out an idea here, but sometimes it is hard to see why a doctest is failing, see for example JuliaLang/julia#19569 (comment).

Maybe it could be possible to print a diff to explicitly show where the problem is. On the other hand, maybe in the vast majority of cases, the difference should be obvious.

@MichaelHatherly
Copy link
Member

Yes, would be good to have.

@MichaelHatherly
Copy link
Member

Some basic diff printing in the referenced commit. Probably will need some fine tuning of the output, but I'd say it's definitely an improvement over what gets printed at the moment.

MichaelHatherly added a commit to MichaelHatherly/Documenter.jl that referenced this issue Dec 26, 2016
MichaelHatherly added a commit to MichaelHatherly/Documenter.jl that referenced this issue Dec 26, 2016
MichaelHatherly added a commit to MichaelHatherly/Documenter.jl that referenced this issue Dec 27, 2016
Fixes JuliaDocs#370.

(cherry picked from commit 606bb63)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants