jakemcc / test-refresh

Refreshes and reruns clojure.tests in your project.
393 stars 28 forks source link

`:quiet` flag is broken #86

Closed cloojure closed 1 year ago

cloojure commented 1 year ago

Use the template below when reporting bugs. Please make sure the problem is still a problem with the latest version of lein-test-refresh before submitting.

What version of lein-test-refresh? 0.25.0

What version of Leiningen? N/A

Can you recreate the issue with a minimal project? See https://github.com/cloojure/tupelo

If you can't do above, can you share your project.clj and project structure?

Title says it all. I get the following:

                                                                                                                                                                        ~/tupelo > ctr
time (clojure -M:test-refresh)
*********************************************
*************** Running tests ***************
:reloading (tupelo.core.impl tupelo.schema tupelo.lexical tupelo.types tupelo.core tupelo.chars tupelo.string tupelo.array.mutable tupelo.testy tst.tupelo.array.mutable tupelo.bits tupelo.uuid tupelo.test tst.tupelo.uuid tupelo.hierarchy tst.tupelo.hierarchy tupelo.io tst.tupelo.io tupelo.set tst.tupelo.set tupelo.java-time.convert tupelo.tagstr tst.tupelo.tagstr tst.tupelo.schema tupelo.deprecated tupelo.base64 tupelo.y64 tupelo.parse.yaml tst.tupelo.parse.yaml tupelo.interval tupelo.java-time tst.tupelo.java-time.convert tst.tupelo.test tupelo.math tst.tupelo.math tupelo.base64url tupelo.misc tst.tupelo.base64url tupelo.parse.xml tupelo.parse.tagsoup tupelo.forest tst.tupelo.forest-examples tst.tupelo.parse.xml tst.tupelo.core.snip tupelo.splat tst.tupelo.splat tst.tupelo.expr tst.tupelo.string tst.tupelo.lexical tupelo.async tupelo.quote tupelo.trace tupelo.dev tst.tupelo.dev tst.tupelo.chars tupelo.types.coerce tst.tupelo.types.coerce tupelo.tagval tupelo.java-time.epoch tst.tupelo.spec tupelo.lazy tst.tupelo.lazy tst.tupelo.y64 tst.tupelo.async tst.tupelo.quote tst.tupelo.demo tst.tupelo.java-time tst.tupelo.parse.tagsoup tupelo.spec tupelo.parse tst.tupelo.deprecated tst.tupelo.x.data tst.tupelo.bits tst.tupelo.base64 tst._bootstrap tst.tupelo.misc tupelo.gen tst.tupelo.x.specter tst.tupelo.types tst.tupelo.core tupelo.string.safe tupelo.array tst.tupelo.array tst.tupelo.parse tst.tupelo.var-demo tst.tupelo.tagval tupelo.vec tst.tupelo.vec tupelo.csv tst.tupelo.csv tupelo.explicit tupelo.profile tst.tupelo.profile tst.tupelo.forest tst.tupelo.interval tst.tupelo.java-time.epoch tst.tupelo.string.safe tupelo.macros)

Testing tst.tupelo.async

Testing tst.tupelo.base64

Testing tst.tupelo.base64url

Testing tst.tupelo.bits

Testing tst.tupelo.csv

Testing tst.tupelo.demo

Testing tst.tupelo.deprecated

Testing tst.tupelo.dev

Testing tst.tupelo.forest

Testing tst.tupelo.forest-examples

Testing tst.tupelo.io

Testing tst.tupelo.java-time

Testing tst.tupelo.java-time.convert

Testing tst.tupelo.java-time.epoch

Testing tst.tupelo.parse.tagsoup

Testing tst.tupelo.parse.xml

Testing tst.tupelo.parse.yaml

Testing tst.tupelo.profile

Testing tst.tupelo.spec

Testing tst.tupelo.splat

Testing tst.tupelo.tagstr

Testing tst.tupelo.test

Testing tst.tupelo.types

Testing tst.tupelo.uuid

Testing tst.tupelo.var-demo

Testing tst.tupelo.x.data

Testing tst.tupelo.x.specter

Testing tst.tupelo.y64

Testing tst._bootstrap

Testing tst.tupelo.array

Testing tst.tupelo.array.mutable

Testing tst.tupelo.chars

Testing tst.tupelo.core

Testing tst.tupelo.core.snip

Testing tst.tupelo.hierarchy

Testing tst.tupelo.interval

Testing tst.tupelo.lazy

Testing tst.tupelo.lexical

Testing tst.tupelo.math

Testing tst.tupelo.misc

Testing tst.tupelo.parse

Testing tst.tupelo.quote

Testing tst.tupelo.schema

Testing tst.tupelo.set

Testing tst.tupelo.string

Testing tst.tupelo.string.safe

Testing tst.tupelo.tagval

Testing tst.tupelo.types.coerce

Testing tst.tupelo.vec

Ran 3 tests containing 14 assertions.
0 failures, 0 errors.

Passed all tests
Finished at 20:44:30.014 (run time: 12.654s)
jakemcc commented 1 year ago

Ahh, I poked around some and figured this out.

By default, test-refresh looks for the configuration file in .test-refresh.edn. Doing a mv test-refresh.edn .test-refresh.edn lets test-refresh pick up the setting.

An alternative would be to use the command line flag to specify the file clojure -M:test-refresh -c test-refresh.edn

cloojure commented 1 year ago

OK, thanks.