dmusican / Elegit

A GUI client for people who want to learn Git.
MIT License
30 stars 7 forks source link

Clean up stored preferences and create a TestFX test manipulating them #551

Closed dmusican closed 6 years ago

dmusican commented 6 years ago

I was just trying to create an TestFX test where I changed the a preference (such as which is the most recent repo), but doing it without breaking my experience as a regular Elegit user. The tests already ignore the user's normal preferences, but adding a preference before Elegit starts is hard. For that matter, the prefs in Elefit are kind of a mess; they're supposed to be associated with a class, but it's somewhat all over the map which class we're using. Clean this up, and generate a TextFX test that changes a preference before it starts.

The commit where I have the test I started to write is 1852ec9.

dmusican commented 6 years ago

I completed this as part of helping the tests to run in parallel. All tests (so long as they call the right initialization code) now store their preferences in a sandbox.