Re: [PATCH v4 4/4] t0302: test credential-store support for XDG_CONFIG_HOME
- From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
- Date
- Mar 19, 2015, 13:35 UTC
- Message-ID
- <vpqy4mtrtxm.fsf@anie.imag.fr>
- In-Reply-To
- <CAPig+cTaQAnWoz7=v9tOPZoeE3LTV+H6KD_tAzmOXi3Tjay_WA@mail.gmail.com>
Eric Sunshine <sunshine@sunshineco.com> writes:
> I also tend to favor adding "failure" tests which are flipped to > "success" when appropriate, however, as this is an entirely new > feature, this approach may be unsuitable (and perhaps overkill).
I can buy the "overkill", but not unsuitable. Even for new features, the tests should fail before and pass after. Otherwise, the tests are not testing the feature. Actually, this is a strong principle in test-driven development: don't write code unless you have a failing test.
But I was just thinking out loudly, certainly not requesting a change.
-- Matthieu Moy http://www-verimag.imag.fr/~moy/