-
Notifications
You must be signed in to change notification settings - Fork 313
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
Removing a check for infix expression element from specs2 test configuration creation #167
Removing a check for infix expression element from specs2 test configuration creation #167
Conversation
Can one of the admins verify this patch? |
Ok, this probably relates to the bug #168, relating to the finding of existing configurations. There's a check in |
@chaoren could you please take a look at this? |
private static String getElementStaticText(PsiElement element) { | ||
return TestConfigurationUtil.getStaticTestNameOrDefault( | ||
element, | ||
null, |
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.
Ugh, they named the parameter "default". I think it's messing up the IDE.
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.
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.
Oh wow, so that's why the red squiggly :(
I upvoted the issue, let's hope it will be fixed before flying cars :)
Merged internally, now to export to github. |
Thanks!
…On Thu, 30 Nov 2017 at 19:17 Chaoren Lin ***@***.***> wrote:
Merged internally, now to export to github.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#167 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABUIFwLwYnZ3tYH8NzH15N8tvcGlKj7Cks5s7uM-gaJpZM4QrUVg>
.
|
Fixes #155
Fixes #168
This pull request removes the check for
ScInfixExpr
from the test configuration for scala2 (see #155). This fixes a bug that prevents right-clicking and running the individual tests.This is caused due to the element which is right-clicked will usually be the
Literal
identifier (i.e. "the test name"). An additional lookup for the parentScInfixExpr
is needed to get the actual test case element. This PR adds this lookup.In addition, some APIs were tweaked to reduce the dependance on the Scala types.