Is this an example of extreme programming? Currently we try to write all tests before development is done, but at times it is done afterwards when there are time constraints.

  • 1
    Nope. Post hoc testing is Extremely Sloppy Programming™. Even in traditional waterfall, you're supposed to do QA and UAT before delivery. Q.E.D.
    – Todd A. Jacobs
    Jan 29 '18 at 12:58
  • Possible duplicate of How TDD is related to extreme programming? Jan 29 '18 at 14:02
  • Do yourself a favor and pick up a copy of “Extreme Programming Explained” by Kent Beck. It’s very approachable, whether or not you’re a technical person.
    – RubberDuck
    Feb 12 '18 at 0:14

Ah, no it's not an example of XP. Delivering untested code is just sloppy.

Different practices have different opinions about when test are to be written.

But they all agree on one thing: After release is too late.

  • Ah right, what should you do then if you are running out of time, it works, but cannot write tests?
    – bobo2000
    Jan 29 '18 at 12:00
  • 1
    How do you know it "works" when you don't have tests? Tests are not something that you tack on top because a book says they are nice... tests are functionally necessary to come to the conclusion you already seem to have. So when you run out of time, you deliver without tests and hope your customer does not know it's sloppy. Then you improve your process so you don't run out of time next time.
    – nvoigt
    Jan 29 '18 at 12:05
  • 1
    @bobo2000: How can you say that it works if it hasn't been tested? Jan 29 '18 at 12:05
  • You can do manual testing
    – bobo2000
    Jan 29 '18 at 17:42
  • Unless you don't have to rerun tests, manual testing will likely take longer than writing tests. One bug will invalidate your manual testing. It may take a little longer to get started using automated tests, but it pays off quickly.
    – BillThor
    Feb 2 '18 at 5:23
  • Test Driven Development is a rule in eXtreme Programming.
  • Test Driven Development requires that tests must be written first.
  • Therefore, the answer is, "NO."

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.