pytest-testmon icon indicating copy to clipboard operation
pytest-testmon copied to clipboard

Remove testmondata automatically if old

Open jacksongoode opened this issue 2 years ago • 1 comments

Across versions we often get the error:

testmon.db.TestmonDbException: The stored data file ***/.testmondata version (0) is not compatible with current version (9). You must delete the stored data to continue.

To me, I would be happy with the default behavior of printing a warning regarding the old testmondata file, rename it to testmondata.old and generate anew. Currently we have to account for pytest failing as a result of this error when updating testmon. If this is something, you'd be open to I can make a PR.

jacksongoode avatar Aug 08 '22 17:08 jacksongoode

Incidentally I already worked on this as a part of a little refactoring. No PR needed, it should be released soon.

tarpas avatar Aug 17 '22 10:08 tarpas

This has been implemented since v1.3.4. @jacksongoode pytest-xdist support has been implemented in v1.4.0a0 (pre-release)

tarpas avatar Sep 16 '22 16:09 tarpas