pytest-testmon
pytest-testmon copied to clipboard
Go back to using pytest-cache, or at least manually store .testmondata in .cache/?
This is only a very minor annoyance, but would it be possible to put .testmondata in .cache/, either via the pytest-cache API (which is part of pytest-core since 2.8), or perhaps even by manually writing it there?
The idea is to avoid having to add .testmondata to .gitignore, instead sticking to .cache (it sounds a bit awkward to have to add all individual cache files of whatever plugins one may be using to .gitignore -- in fact not all devs of a project may be using the same plugin set).
I rely on sqlite quite a lot and plan to use it's functionality even more heavily. I think pytest-cache API is out of question then.
It would even be beneficial to share the file among developers either through git or other mechanism. This is of course something to think through.
Is there other plugin which solves this minor annoyance by putting it's datafile into .cache dir?
pytest uses config.rootdir.join(".cache")
to get the cache dir.
testmon could put its data there also, which would still allow for sharing it with others - e.g. by using a symlink to some other location.