Is there a way for `pants test` specifically `pyte...
# general
w
Is there a way for
pants test
specifically
pytest
to be able to export some contents from the sandbox? E.g. there is a plugin we are using (https://allurereport.org/) that outputs some data in the sandbox dir, wondering how we can get to it. It functions in a similar way to coverage - generating html output only option i can think of is to specify the output directory in pytest args, but i don’t know if that will work if the dir is outside sandbox
h
Anything you cause to be emitted under
extra-output/
in the sandbox will get copied out to
dist/
For example,
./pants test tests/:: -- --html=extra-output/report.html
tells pytest to emit its html report to that path, which pants will then copy to
dist/report.html
Well, actually some path under
dist/
, but a predictable one
So as long as you can tell the plugin to write under
extra-output/
(relative to the sandbox cwd)...
w
Ok perfect!
h
Let us know if that works