Fork me on GitHub
#deps-new
<
2021-05-18
>
johanatan19:05:44

hi, it seems that default :test:runner is currently broken. is this a known issue?

johanatan19:05:48

12:12 $ clj -X:test:runner 
No function found on command line or in :exec-fn

johanatan19:05:01

^^ freshly generated "app" project

johanatan19:05:39

with this as my :new alias in `/.clojure/deps.edn :

35   │     :new  {:extra-deps {seancorfield/clj-new {:mvn/version "1.1.297"}}
  36   │            :exec-fn clj-new/create
  37   │            :exec-args {:template "app"}}

seancorfield19:05:24

Hmm, not a known issue. Let me just repro…

seancorfield19:05:50

The readme in a generated app project says to use clojure -M:test:runner

seancorfield19:05:06

(and that does work)

seancorfield19:05:05

Ah, I see the confusion. Apologies. The clj-new README has been updated to reflect the next version but that hasn’t been released yet.

seancorfield19:05:11

@johanatan OK, I’ve released clj-new 1.1.309 so that will work now:

(! 520)-> clojure -X:new :template app :name johanatan/example
Downloading: com/github/seancorfield/clj-new/1.1.309/clj-new-1.1.309.pom from clojars
Downloading: com/github/seancorfield/clj-new/1.1.309/clj-new-1.1.309.jar from clojars
Generating a project called example based on the 'app' template.
(! 521)-> cd example/
(! 522)-> clojure -X:test:runner

Running tests in #{"test"}

Testing johanatan.example-test

FAIL in (a-test) (example_test.clj:7)
FIXME, I fail.
expected: (= 0 1)
  actual: (not (= 0 1))

Ran 1 tests containing 1 assertions.
1 failures, 0 errors.