leiningen

N.B. The maintainers are on #leiningen on Libera chat IRC. Go there for direct support/bug reports.
nachos 2020-06-10T14:18:01.243200Z

When running lein test is there a way to run a hook before all tests? Like fixtures but it should run before all tests and after. Essentially I want to clean up the entire database after test and run migration before tests begin.

2020-06-10T16:55:40.244300Z

@danisam17 just a theory - you could set :prep-tasks in the :test profile

:test {:prep-tasks [["migrate-db" "opt" "opt2"]]}

2020-06-10T16:55:53.244600Z

where migrate-db is some shell command