Le 24 sept. 2016 à 11:04, Wojciech Potiopa <wojciech...@gmail.com> a écrit :Hello, I've been using Eclipse with Ceylon 1.2.2 and it was easy running "runnable" components and testing "test". I wanted to switch to IDEA IntelliJ but it seems i can't find interface to run Ceylon test.
I was trying to run them by right click on test method -> Context menu -> Run ...
IDE creates proper run config it runs and gaves:
<I replaced paths beginnings with - ... , in output for better readability >
"...\jdk1.8.0_101\bin\java"
-Dceylon.system.repo=...\.IdeaIC2016.2\config\plugins\CeylonIDEA\classes\embeddedDist\repo
-Didea.launcher.port=7533
"-Didea.launcher.bin.path=...\JetBrains\IntelliJ IDEA Community Edition
2016.2.4\bin" -Dfile.encoding=windows-1250 -classpath
"...\.IdeaIC2016.2\config\plugins\CeylonIDEA\classes\embeddedDist\lib\ceylon-bootstrap.jar;
...\JetBrains\IntelliJ
IDEA Community Edition 2016.2.4\lib\idea_rt.jar"
com.intellij.rt.execution.application.AppMain
com.redhat.ceylon.launcher.Bootstrap run --run
test.com.voitech.TestClass test.com.voitech/1.0.0 simpleTest
Process finished with exit code 0
No test runner windows pop's up, nothing shows up.
This must be somehting simple, some VM option need to be added ? Program argument ?
Thanks
Wojciech--
You received this message because you are subscribed to the Google Groups "ceylon-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ceylon-users...@googlegroups.com.
To post to this group, send email to ceylon...@googlegroups.com.
Visit this group at https://groups.google.com/group/ceylon-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ceylon-users/83c64b29-5f31-4e30-be02-3414475c0d5e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
I have found some simple workaround to do this.
You just need to add new Run (e.g. "Ceylon Test") configuration as JAR application:
Path to JAR: "$CEYLON_HOME/lib/ceylon-bootstrap.jar"
Where CEYLON_HOME is home directory of your Ceylon. e.g. on Linux it "/usr/share/ceylon/1.3.3".
Program arguments: "test "
JRE:
Before launch:
On Windows you might not to change anything (it should be "Build" by
default) but on Linux I recommend replace it (remove "Build" and add
"Ceylon command") on the Ceylon command "compile", because from time to
time in Idea the "Build" doesn't build module in fact.