codecentric / gopass-ui

gopass CLI + UI = visual cross-platform password manager for teams
MIT License
248 stars 19 forks source link

Test data integration #55

Open ruettenm opened 4 years ago

ruettenm commented 4 years ago

It would be great to add a new menu entry to switch into some "testdata" mode. So it's easy to take screenshots without any production gopass store.

One solution could be:

jonas-pietzsch commented 4 years ago

The thing I don't like about this: if you want to do a full demo about the tool, including modification the Gopass store (add, delete, edit secret values etc) a simple test data provider is not enough.

After adding or deleting a secret Gopass UI retrieves all secret names again and re-builds the navigation tree. When using hard-coded test data, one would need to implement a mocked version of Gopass that behaves like real Gopass in terms of deletion, adding, editing and so on. I don't have a good feeling about adding this to the production code. Also it's more work. I would prefer having a shell script that generates a Gopass store with test data.