You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not look like clojure_test supports attributes resources or data the way that java rules do. Any advice on how to support a use-case where my unit tests depend on static resources?
My project is structured like so
test/
|- my_test.clj
|- testdata/
|--- data.edn
and I just want to be able to access my .edn file from my_test.clj, for example (slurp "testdata/data.edn").
I tried to exposing the testdata as a file group, but clojure_test cannot depend on something that does not provide JavaInfo.
Additionally, I tried to package my testdata in a java library like so
It does not look like
clojure_test
supports attributesresources
ordata
the way that java rules do. Any advice on how to support a use-case where my unit tests depend on static resources?My project is structured like so
and I just want to be able to access my .edn file from
my_test.clj
, for example(slurp "testdata/data.edn")
.I tried to exposing the testdata as a file group, but
clojure_test
cannot depend on something that does not provideJavaInfo
.Additionally, I tried to package my testdata in a java library like so
I would not be surprised if the jar approach makes no sense, I just gave it a shot :)
Appreciate any advice you can offer
The text was updated successfully, but these errors were encountered: