Fork me on GitHub
#leiningen
<
2020-06-10
>
nachos14:06:01

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.

noisesmith16:06:40

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

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

noisesmith16:06:53

where migrate-db is some shell command