Skip to content

Add support for overriding test main_class#106

Open
SevereOverfl0w wants to merge 1 commit into
mainfrom
custom-testrunner
Open

Add support for overriding test main_class#106
SevereOverfl0w wants to merge 1 commit into
mainfrom
custom-testrunner

Conversation

@SevereOverfl0w

Copy link
Copy Markdown
Contributor

This allows doing this:

(ns griffin.test.runner
  {:bazel/clojure_library {:deps ["@rules_clojure//src/rules_clojure:testrunner"]}}
  (:require [rules-clojure.testrunner :as testrunner])
  (:gen-class))

(defn -main
  [& args]
  (binding [*print-length* 1]
    (apply testrunner/-main args)))

by setting this in your clojure_test deps.edn alias:

:clojure_test {:main_class "griffin.test.runner"
               :deps ["//src/griffin/test:runner"]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant