eftest icon indicating copy to clipboard operation
eftest copied to clipboard

Does eftest has the support of global fixtures?

Open alekseysotnikov opened this issue 5 years ago • 2 comments

Like in circleci.test https://github.com/circleci/circleci.test#global-fixtures

How can I define global fixtures that are only run once for the entire test run? I just need an idea.

alekseysotnikov avatar Feb 29 '20 12:02 alekseysotnikov

No, not currently. However the original author of fixtures now thinks there are better alternatives to them.

weavejester avatar Feb 29 '20 12:02 weavejester

How can I define global fixtures that are only run once for the entire test run? I just need an idea.

Try Leiningen's :injections keyword and enable it when you call eftest.

lein with-profile +test-injections eftest
(defproject ..
  :profiles {:test-injections {:injections [(prn "hello")]}}) 

frenchy64 avatar Jan 26 '22 19:01 frenchy64