Skip to content

Commit

Permalink
extend use of clojure plugin to compile and run clojure juint testcas…
Browse files Browse the repository at this point in the history
…es - hopefully these will create coverage for the clojure code that they exercise...

also added execution of gendoc to site phase - untested
closes #47
  • Loading branch information
JulesGosnell committed Feb 25, 2010
1 parent a7648b3 commit d2a26be
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,27 @@
<goal>compile</goal>
</goals>
</execution>
<execution>
<id>clojure-test-compile</id>
<phase>test-compile</phase>
<goals>
<goal>testCompile</goal>
</goals>
</execution>
<execution>
<id>clojure-test</id>
<phase>test</phase>
<goals>
<goal>test</goal>
</goals>
</execution>
<execution>
<id>clojure-gendoc</id>
<phase>site</phase>
<goals>
<goal>gendoc</goal>
</goals>
</execution>
</executions>
</plugin>

Expand Down
16 changes: 16 additions & 0 deletions src/test/clojure/org/dada/CoreTestCase.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
;; see if we can integrate clojure with surefire/junit and thence with
;; cobertura...

(ns org.dada.CoreTestCase
(:gen-class
:extends junit.framework.TestCase
;;:init init
:methods [[testCore [] void]]
)
;;(:use [])
(:import [junit.framework TestCase] ;;[]
))

(defn -testCore [this]
(TestCase/assertTrue (Boolean/TRUE))
(println "TESTED!"))

0 comments on commit d2a26be

Please sign in to comment.