deps-new

johanatan 2021-05-18T19:15:44.000800Z

hi, it seems that default testrunner is currently broken. is this a known issue?

johanatan 2021-05-18T19:15:48.001100Z

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

johanatan 2021-05-18T19:16:01.001400Z

^^ freshly generated "app" project

johanatan 2021-05-18T19:16:39.001900Z

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"}}

seancorfield 2021-05-18T19:22:24.002300Z

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

seancorfield 2021-05-18T19:23:50.002600Z

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

seancorfield 2021-05-18T19:24:06.002800Z

(and that does work)

seancorfield 2021-05-18T19:25:05.003500Z

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.

seancorfield 2021-05-18T19:38:11.004200Z

@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.