Fork me on GitHub
#testing
<
2021-10-20
>
fabrao12:10:37

Hello all, how do I include in runner alias for exclude some pattern?

:runner
  {:extra-deps {com.cognitect/test-runner
                {:git/url ""
                 :sha     "b6b3193fcc42659d7e46ecd1884a228993441182"}}
   :main-opts  ["-m" "cognitect.test-runner"
                "-d" "test"]}

vemv14:10:19

what sort of pattern? just yesterday I started using its metadata feature, worked well :)

seancorfield17:10:35

Per https://github.com/cognitect-labs/test-runner#invoke-with-clojure--m-clojuremain the option for exclude is based on a keyword that identifies test functions to exclude via metadata. The "pattern" option is for matching namespaces to include via regex. There's also a keyword include option which is about test function metadata @U0YJJPFRA