Running Mix.shell.cmd inside test setup

Is it possible to run Mix.shell.cmd inside test setup. When i tried like this:

       Mix.Shell.cmd("mix run priv/repo/seeds.exs", fn output -> IO.write(output) end)

It gives me error about no such file exists.
I want to run seeds file just for one test file.
Is it possible?
Any suggestions?
Thanks

What are you actually trying to achieve? To seed your test DB before running tests in it?

1 Like