clojure-maven-plugin icon indicating copy to clipboard operation
clojure-maven-plugin copied to clipboard

ClojureScript tests?

Open mikera opened this issue 10 years ago • 4 comments

Hi,

I have a Clojure + ClojureScript project using cljc that I'd like to test using Maven. Both the Clojure and ClojureScript versions need to be tested at the same time.

Is that possible using clojure-maven-plugin?

mikera avatar Nov 04 '15 02:11 mikera

Currently there's no support for ClojureScript at all so I guess no. First step would be having some form of compile-js goal or something I guess.

I've never looked at ClojureScript so not sure how you compile to that target - any ideas?

talios avatar Nov 06 '15 00:11 talios

I'm not an expert either. Would it be possible to trigger leiningen CljureScript builds perhaps?

Or maybe run some Clojure code that fires off the ClojureScript tests?

mikera avatar Nov 06 '15 03:11 mikera

data.xml uses a testsuite runner based on nashorn: https://github.com/clojure/data.xml/blob/0599423f9f18c09527e2abb56f80ed309e6df3a1/src/test/resources/clojure/data/xml/cljs_testsuite.clj

bendlas avatar Jan 06 '17 17:01 bendlas

Looks like an interesting idea - thanks @bendlas !

mikera avatar Jan 06 '17 18:01 mikera