Skip to content

partest-only --show-diff does not show diff #609

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

Closed
DarkDimius opened this issue May 27, 2015 · 3 comments
Closed

partest-only --show-diff does not show diff #609

DarkDimius opened this issue May 27, 2015 · 3 comments

Comments

@DarkDimius
Copy link
Contributor

[info] !!   3 - run/OrderingTest.scala                    [output differs]
[info] % diff /Users/dark/workspace/dotty/tests/partest-generated/run/OrderingTest-run.log /Users/dark/workspace/dotty/tests/partest-generated/run/OrderingTest.check
[info] ok   4 - run/Course-2002-05.scala
[info] !!   5 - run/Course-2002-03.scala                  [output differs]
[info] % diff /Users/dark/workspace/dotty/tests/partest-generated/run/Course-2002-03-run.log /Users/dark/workspace/dotty/tests/partest-generated/run/Course-2002-03.check
[info] ok   6 - run/Course-2002-04.scala
@DarkDimius
Copy link
Contributor Author

running with --verbose does not help:

[info] Options: (use partest --help for usage information) run --show-diff --verbose
[info]
[info] Selected 452 tests drawn from 1 named test categories
[info]
[info] # starting 452 tests in run
[info] ok   1 - run/Course-2002-06.scala
[info] !!   2 - run/OrderingTest.scala                    [output differs]
[info] % diff /Users/dark/workspace/dotty/tests/partest-generated/run/OrderingTest-run.log /Users/dark/workspace/dotty/tests/partest-generated/run/OrderingTest.check
[info] ok   3 - run/MutableListTest.scala
[info] !!   4 - run/Course-2002-03.scala                  [output differs]
[info] % diff /Users/dark/workspace/dotty/tests/partest-generated/run/Course-2002-03-run.log /Users/dark/workspace/dotty/tests/partest-generated/run/Course-2002-03.check
[info] ok   5 - run/Course-2002-05.scala

@vsalvis
Copy link
Contributor

vsalvis commented May 27, 2015

--verbose will print the transcript of all failed tests at the end. It does print diffs. I'll investigate why show-diff doesn't work.

DarkDimius added a commit that referenced this issue May 27, 2015
Enables printing of diffs after test failure and a more summary in the end of test suite.
Diffs do not work yet #609
@vsalvis
Copy link
Contributor

vsalvis commented May 27, 2015

Fixed --show-diff in #612

@DarkDimius I don't see the interest in having both --show-diff and --verbose, as --verbose will print the diff and also other error output (e.g. compiler output if compilation failed)? So I would suggest removing --show-diff from this PR.

DarkDimius added a commit that referenced this issue May 27, 2015
Enables printing of diffs after test failure and a more summary in the end of test suite.
Diffs do not work yet #609
DarkDimius added a commit that referenced this issue May 27, 2015
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

2 participants