-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Fix #1965: add proper testing infrastructure for reporting tests #1966
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
Fix #1965: add proper testing infrastructure for reporting tests #1966
Conversation
} | ||
} | ||
|
||
ctx = freshReporter(ctx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move the mutation stuff at the very top of the trait. BTW could you make it a class instead? (it feels wrong to have class → trait → class inheritance)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe DottyTest
should be a trait instead?
f(ictx, messages) | ||
} | ||
|
||
def expectNoErrors: Unit = this.isInstanceOf[FailedReport] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean asInstanceOf
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, but I should probably rename FailedReport
=> EmptyReport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then I don't understand the statement, this computes a Boolean
and converts it to Unit
regardless of it's value?
rep | ||
} | ||
|
||
def messageCount(expected: Int, messages: List[Message]): Unit = |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
assertMessageCount
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Looks good otherwise :) |
21bc19e
to
3d20e9d
Compare
3d20e9d
to
07384ca
Compare
No description provided.