In the test plan settings, it's possible to select an .xcappdata bundle for a set of tests:
I failed to find any documentation about it in the context of macOS apps testing. What I'm trying to achieve is having a sandboxed app container (/Users/{user}/Library/Containers/{bundle-id)/Data/) replaced before running a test suite.
Is it something possible to achieve using the latest Xcode? What should be the .xcappdata structure to make it work on macOS?