cider-test-run-tests runs 0 tests

33 views
Skip to first unread message

Kaylen Wheeler

unread,
Oct 11, 2015, 4:21:32 PM10/11/15
to clojure-tools
I've created several tests under the test folder in my project.  However, cider-test-run-tests doesn't seem to be able to recognize their existence.

Do I need to add something to my project.clj or other configuration to get this to work?

Fenton Travers

unread,
Oct 12, 2015, 8:42:10 AM10/12/15
to clojure-tools
Post your project.clj.... But yes you should specify your test dir in project.clj

Fenton Travers

unread,
Oct 12, 2015, 10:15:05 AM10/12/15
to clojur...@googlegroups.com
hmmm...maybe i have to take this back...just looked in my project.clj, no mention of 'test' anywhere.  I do do:

name my tests the same as file under test with an '_test' so:
core.clj is tested by core_test.clj

If my project is called 'pcbe' the folder layout looks like:

|-- src
|   `-- pcbe
`-- test
    `-- pcbe

post some of you problems...the test file too.

On Mon, Oct 12, 2015 at 5:42 AM, Fenton Travers <fenton....@gmail.com> wrote:
Post your project.clj.... But yes you should specify your test dir in project.clj

--
You received this message because you are subscribed to a topic in the Google Groups "clojure-tools" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojure-tools/2N8mI0qxqRM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojure-tool...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Kaylen Wheeler

unread,
Oct 13, 2015, 10:49:05 PM10/13/15
to clojure-tools
Project.clj is here:

(defproject parensofthedead "0.1.0-SNAPSHOT"
  :description "A series of zombie-themed games written with Clojure and ClojureScript."
  :license {:name "Eclipse Public License"
  :jvm-opts []
  :main parensofthedead.system  
  :dependencies [[org.clojure/clojure "1.7.0"]
                 [org.clojure/clojurescript "1.7.58"]
                 [http-kit "2.1.18"]
                 [com.stuartsierra/component "0.3.0"]
                 [compojure "1.4.0"]
                 [quiescent "0.2.0-RC2"]
                 [expectations "2.1.3"]
                 [jarohen/chord "0.6.0"]
                 [org.clojure/core.async "0.1.346.0-17112a-alpha"]]
  :source-paths ["src"]
  :test-paths ["test"]
  :profiles {:dev {:plugins [[lein-cljsbuild "1.1.0"]
                             [lein-figwheel "0.4.0"]]
                   :dependencies [[reloaded.repl "0.2.0"]
                                  [lein-figwheel "0.4.0"]
                                  [com.cemerick/piggieback "0.2.2-SNAPSHOT"]]
                   :source-paths ["dev"]
                   :figwheel {:nrepl-port 7888}
                   :cljsbuild {:builds [{:source-paths ["src" "dev"]
                                         :figwheel true
                                         :compiler {:output-to "target/classes/public/app.js"
                                                    :output-dir "target/classes/public/out"
                                                    :optimizations :none
                                                    :source-map true}}]}}})

Fenton Travers

unread,
Oct 14, 2015, 10:04:11 AM10/14/15
to clojur...@googlegroups.com
r u naming your tests correctly?

do u have the correct folder layout?

paste a sample test file here...as I said, I don't believe there is anything in the project file that matters.
Reply all
Reply to author
Forward
0 new messages