Running ParsingTest in intellij [message #1723793] |
Thu, 18 February 2016 05:28 |
pranay roy Messages: 196 Registered: January 2016 |
Senior Member |
|
|
HI,
I am trying to run individual test cases from the Auto-created "parsing test.xtend".In intellij I do not see a "run as" for the particular class. Moreover, When I try to debug the test the breakpoint does not stop at the test.
However, When I put the breakpoint in the generated java test class it stops . And it is also identified as a test class and I can run individual tests.
What could be the issue with the "xtend" test class. I wish to debug directy in the test i write in xtend and not in java. Please suggest.
[Updated on: Thu, 18 February 2016 05:28] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Re: Running ParsingTest in intellij [message #1723811 is a reply to message #1723805] |
Thu, 18 February 2016 08:28 |
|
to test
(1) file new Project
(2) java, tick xtend, use libary, create, next
(3) enter a name, finish (new window)
create a xtend class
package my
/**
* Created by dietrich on 18.02.16.
*/
class Main {
def static void main(String[] args) {
System.out.println("Hello")
System.out.println("Hello")
System.out.println("Hello")
System.out.println("Hello")
System.out.println("Hello")
System.out.println("Hello")
}
}
run the generated main
set breakpoint in xtend
debug the generated main
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
|
Re: Running ParsingTest in intellij [message #1723823 is a reply to message #1723819] |
Thu, 18 February 2016 09:33 |
|
hi,
i cannot answer this.
what i can tell you.
- there is no run or debug command on xtend files. please open a ticket for this.
- if you debug the generated Java file and set a breakpoint in the xtend file, the the flow will stop in the xtend file
- to get this running the xtend builder must run "somehow" automatically. on my Setup this happens
(there is a xtend facet in the Projects iml)
i create the Project using the wizard and do a grade clean and a grade build first and a refresh all grade Projects besore startng editing
since i am not what deep into intellij that is all what i personally can do
can you please file a bug if he "somehow" automatically does not work in your Setup
with detailed seteps what you are exactly doing when creating the xtext Project.
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
Powered by
FUDForum. Page generated in 0.04844 seconds