Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does eftest has the support of global fixtures? #78

Open
alekseysotnikov opened this issue Feb 29, 2020 · 2 comments
Open

Does eftest has the support of global fixtures? #78

alekseysotnikov opened this issue Feb 29, 2020 · 2 comments

Comments

@alekseysotnikov
Copy link

alekseysotnikov commented Feb 29, 2020

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 alekseysotnikov changed the title Does eftest has support of global fixtures? Does eftest has the support of global fixtures? Feb 29, 2020
@weavejester
Copy link
Owner

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

@frenchy64
Copy link
Contributor

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")]}}) 

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

No branches or pull requests

3 participants