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

IntelliJ: JavaScript-style outline variables are not interpolated in scenario names #41

Closed
petrandreev opened this issue Sep 25, 2023 · 5 comments
Assignees
Labels
bug Something isn't working fixed Fixed

Comments

@petrandreev
Copy link

In IntelliJ IDEA, Build #IC-232.9921.47, built on September 12, 2023
with Karate (Freemium) plugin, Version 1.7.7.361-232:

while running tests in karate-core/src/test/java/com/intuit/karate/core/parser/test-outline-name-js.feature
the JS variable names are not interpolated and the cog wheels suggest tests to infinitely run, but they all are completed:
image

Karate reports show proper JS-expressions interpolation though:
image

@ptrthomas ptrthomas added wontfix This will not be worked on and removed wontfix This will not be worked on labels Sep 25, 2023
@ptrthomas
Copy link
Member

@petrandreev interesting. the intellij log parsing system doesn't seem to like back-ticks and ${}.

the below test works fine, but the moment you add one of the above, you see the problem

Feature:

Scenario Outline: name is
* def name = name
* match name == "#? _ == 'Bob' || _ == 'Nyan'"

Examples:
| name   | age | title                     |
| Bob    | 10  | name is Bob and age is 10 |
| Nyan   | 5   | name is Nyan and age is 5 |

@petrandreev
Copy link
Author

well the issue is not 100% related to Intellij, since I can see the similar logs in the gradle runs, like:
image

@ptrthomas
Copy link
Member

@petrandreev then please follow this process so we can fix this in the core project: https://github.com/karatelabs/karate/wiki/How-to-Submit-an-Issue

@petrandreev
Copy link
Author

Thanks for response, I'm sure you will find the paid time to file the issue, following the mentioned process. Good luck.

ptrthomas added a commit to karatelabs/karate that referenced this issue Jan 18, 2024
remove intellij hook because of complaints: karatelabs/intellij-plugin#41
remove legacy ide support
@ptrthomas ptrthomas self-assigned this Feb 2, 2024
@ptrthomas ptrthomas added bug Something isn't working fixed Fixed labels Feb 2, 2024
@ptrthomas
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fixed Fixed
Projects
None yet
Development

No branches or pull requests

2 participants