ceylon-ide-intellij icon indicating copy to clipboard operation
ceylon-ide-intellij copied to clipboard

test runner for ceylon.test

Open russel opened this issue 9 years ago • 6 comments
trafficstars

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.

russel avatar Jun 05 '16 12:06 russel

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.

bjansen avatar Jun 05 '16 21:06 bjansen

I have edited the title to better reflect that this is a feature request for a test runner.

gavinking avatar Jun 22 '16 14:06 gavinking

Hi everyone,

I just stumbled upon the same issue. Is there any active work on this?

Chessray avatar Feb 19 '17 09:02 Chessray

Unfortunately, not at the moment.

bjansen avatar Feb 19 '17 10:02 bjansen

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 avatar Dec 06 '17 17:12 akornilov

@akornilov 👍 great, thanks for the info!

gavinking avatar Feb 13 '18 12:02 gavinking