From b2e4da9e0c71a62f053aa9a8586089d77b24f4e9 Mon Sep 17 00:00:00 2001 From: Thomas Schwinge Date: Thu, 29 Sep 2011 20:19:15 +0200 Subject: [PATCH] patchformatting: Test Suite Enhancements Based on the emails starting at id:"87liu2kcq6.fsf@servo.factory.finestructure.net". --- patchformatting.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/patchformatting.mdwn b/patchformatting.mdwn index cf5bf81..914371d 100644 --- a/patchformatting.mdwn +++ b/patchformatting.mdwn @@ -41,6 +41,16 @@ Eric S. Raymond has written good [Software Release Practice HOWTO](http://tldp.org/HOWTO/Software-Release-Practice-HOWTO/). Check what he has to say about this issue. +### Test Suite Enhancements + +New features as well as bug fixes should typically come with test suite +enhancements. The test suite changes should be done first (tagged as *expected +to fail*), and the feature implementation or bug fix should come second +(removing the *expected to fail* tag). This way, the test suite specifies the +behavior you're trying to implement, be it a new feature or a bug fix. By +defining beforehand exactly what you expect to happen, everyone can confirm +that your patch achieves what it is meant it to. + ## Prepare patches for e-mail submission If you've made just one commit (containing just one bugfix or new feature) -- 2.43.0