fmaclen / canutin-desktop

An open-source personal finance desktop app
https://canutin.com
Apache License 2.0
21 stars 2 forks source link

Tests: create a copy of Unmigratable vault, then delete it after the test runs #204

Open fmaclen opened 4 months ago

fmaclen commented 4 months ago

We have a corrupt Unmigratable.vault we use to test that when a vault isn't migratable an error is displayed to the user. But when the test runs it modifies this Unmigratable vault causing a Git diff.

These vaults need to remain in the repo (can't add them to.gitignore) so a solution could be to create temporary copies of the files, run the test, and then during the test cleanup delete such files.