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.
@danisam17 just a theory - you could set :prep-tasks
in the :test
profile
:test {:prep-tasks [["migrate-db" "opt" "opt2"]]}
where migrate-db is some shell command