-
Notifications
You must be signed in to change notification settings - Fork 7.6k
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
Use JUnit's assert format for assert messages to enable better suppor… #6262
Use JUnit's assert format for assert messages to enable better suppor… #6262
Conversation
I thought IntelliJ already recognized RxJava's Expected/Actual after this: #5258. |
I thought so too. |
Codecov Report
@@ Coverage Diff @@
## 2.x #6262 +/- ##
============================================
+ Coverage 98.23% 98.27% +0.03%
Complexity 6203 6203
============================================
Files 667 667
Lines 44889 44889
Branches 6216 6216
============================================
+ Hits 44097 44113 +16
+ Misses 251 247 -4
+ Partials 541 529 -12
Continue to review full report at Codecov.
|
Unfortunately #5258 didn't made it into 2.x as it seems |
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.
That explains it
Looks like it was never extended: https://github.com/JetBrains/intellij-community/blob/99614a63425774df58eea3ac92e2b20af1633663/plugins/junit_rt/src/com/intellij/junit4/ExpectedPatterns.java#L34 You don't need <> as this pattern matches |
Thanks - will remove the (somewhat awkward <>) ... just added it to match the JUnit style but it's really not needed |
This changes the message format of "assert" to match that of JUnit. This way IDEs like IntelliJ IDEA are able to parse it and offer functionality like "compare values".