ceylon-ide-intellij
ceylon-ide-intellij copied to clipboard
test runner for ceylon.test
Using the "wizard" to create a project from existing source, the project picks up that there are sources in the directories sources and test-sources, but fails to note that those in test-sources are tests. The dependencies seems to be picked up fine, in particular the Specks dependency is picked up and listed in the dependencies.
All the editing etc. seems to work.
Unlike other languages, there is no "Run as" on the context menu. In particular there appears to be no automated "run the tests" entry. I tried marking the test-sources directory as holding test sources instead of sources but still no test run entry of any sort.
I suspect I am missing something and/or just making too many assumptions based on Java, Kotlin, Groovy, Scala, and Clojure usage.
We haven't started working on support for tests (i.e. ceylon.test), so test source roots are currently detected as regular sources, and there's no way to run the tests and show the results. That will hopefully come in a later release.
I have edited the title to better reflect that this is a feature request for a test runner.
Hi everyone,
I just stumbled upon the same issue. Is there any active work on this?
Unfortunately, not at the moment.
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 (your module to test)" JRE: (some existing 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.
@akornilov 👍 great, thanks for the info!