Fleker / SettingsManager

Simple SharedPreferences manager with additional support
1 stars 0 forks source link

Add a testing SettingsManager #2

Open Fleker opened 8 years ago

Fleker commented 8 years ago

There are ways to pass a custom string to the SettingsManager so that you can create several prefs. For tests and libraries which use this, we want to put certain values in SharedPreferences without making them default.

Create a new constructor which takes a String and use that string for the SharedPreferences location. Then, write tests to verify the values are being saved in the correct silos.

ruby-verma commented 8 years ago

Hi, I want to contribute to this. But before proceeding i want to understand, what do you mean by "write tests to verify"? Do you want android test script (unit testing) to do so?

Fleker commented 8 years ago

Hi.

Essentially I'd like some sort of instrumentation test which creates a handful of SettingsManagers. One would be default and the other two have different names. Each would be assigned data with the same keys. The test would verify that the values are not equal.

Thanks!

On Mon, Oct 3, 2016, 4:30 AM ruby-verma notifications@github.com wrote:

Hi, I want to contribute to this. But before proceeding i want to understand, what do you mean by "write tests to verify"? Do you want android test script (unit testing) to do so?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Fleker/SettingsManager/issues/2#issuecomment-251052627, or mute the thread https://github.com/notifications/unsubscribe-auth/ADI58wiI8vWt0ALPoSICBuNyp1iQDrs1ks5qwL0ygaJpZM4KMJUS .