Skip to content

XP123

Exploring Extreme Programming

Menu

Primary menu

  • Home
  • Refactoring Workshop
  • Start Here
    • Comics
    • TDD: Test-Driven Development
    • Refactoring
    • User Stories
    • Dungeons & Patterns
  • Update
  • About
  • Contact

Tag Archives: tdd

Run Tests Without an App — Step by Step with Xcode

Posted on August 1, 2024 by Bill Wake

I’m frustrated when unit tests run slowly. One way to speed them up in Xcode when developing using a simulator: isolate your model to a framework, and run your tests without a host application. Context: Developing a Swift-based app for Continue reading Run Tests Without an App — Step by Step with Xcode→

Posted in xp123.com | Tagged tdd, XPlorations

Swift Testing – A New Unit Testing Framework

Posted on July 5, 2024 by Bill Wake

Apple has introduced a new unit testing framework. It has a simpler syntax, much simpler assertions, parameterized testing, and more. Let’s take a look. You can find a bonus cheatsheet at the end of this article. Easier Syntax XCTest (the Continue reading Swift Testing – A New Unit Testing Framework→

Posted in xp123.com | Tagged programmer, tdd, XPlorations

Trees – Confidence in Design

Posted on May 2, 2024 by Bill Wake

Test-Driven Development (TDD) depends on assembling well-tested parts into a trustworthy whole. Some design structures make this easier. Today, we’ll look at trees. A tree is a structure consisting of leaf and interior nodes. An interior node contains some number Continue reading Trees – Confidence in Design→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

Pipelines – Confidence in Design

Posted on April 4, 2024 by Bill Wake

The other day, Kent Beck pointed out a skill that test-driven development (TDD) relies on but doesn’t give much guidance about: “behavioral composition”. This is the skill of dividing a big behavior in such a way that we trust the Continue reading Pipelines – Confidence in Design→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

Extension Methods for TDD

Posted on August 3, 2023 by Bill Wake

Some languages (e.g., Swift, C#, Java) support extension methods. These let you add new methods to an existing class, even a system class. Extension methods support testing by providing convenient improvements in control and visibility. Extension Methods I’ll show Swift Continue reading Extension Methods for TDD→

Posted in xp123.com | Tagged programmer, tdd, XPlorations

Observe and Control Objects – TDD Patterns

Posted on July 6, 2023 by Bill Wake

An object holds state, and you observe and control it (or both) through its public fields or methods. We’ll look at techniques you can use when an object provides no direct way to observe or control it the way a Continue reading Observe and Control Objects – TDD Patterns→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

Code That Writes Code Needs Multi-Level Tests

Posted on June 1, 2023 by Bill Wake

Code that writes code is fun in a meta sort of way, but it requires extra testing. We’ll start by considering generic systems and their tests, then look at testing for code generation.  “I’d rather write programs to write programs Continue reading Code That Writes Code Needs Multi-Level Tests→

Posted in xp123.com | Tagged design, programmer, tdd, XPlorations

TDD for Sorting, Using Comparators

Posted on March 1, 2023 by Bill Wake

For most sorting problems, we use a pre-existing algorithm. Then, our job is to create a comparator that reflects the desired order. What is Sorting? Suppose you have a sequence of items a[0]…a[n-1], and an operator “<=”. The sorted sequence Continue reading TDD for Sorting, Using Comparators→

Posted in xp123.com | Tagged tdd, XPlorations

TDD with Recursion

Posted on October 6, 2022 by Bill Wake

Recursion means you define something in terms of itself. Some data fits naturally with recursion, e.g., trees. We’ll look at how to use TDD with recursion. We’ll use a tree for our running example. A (binary) tree is either a leaf, Continue reading TDD with Recursion→

Posted in xp123.com | Tagged programmer, tdd, XPlorations

Typealias for TDD

Posted on September 6, 2022 by Bill Wake

There’s a tension when you introduce new objects: type checking can help, but it often gets in the way while you’re exploring. If your language supports it, typealias can smooth the transition from untyped to typed. Typealias In Swift, Kotlin, Continue reading Typealias for TDD→

Posted in xp123.com | Tagged programmer, tdd, XPlorations

Post navigation

← Older posts

Primary Sidebar Widget Area

Stay Up-to-Date

If you'd like to hear when articles come out, sign up today!

|●  Become a Patron!

Recent Posts

  • And-Or Trees
  • Run Tests Without an App — Step by Step with Xcode
  • Swift Testing – A New Unit Testing Framework
  • TDD with a Function Pipeline
  • Trees – Confidence in Design
  • Pipelines – Confidence in Design
  • Threaded Code (and Composite)
  • Time Troubles – Transitions
  • Refactor: Inline-Adjust-Extract
  • Organizing Fields and Methods

Tags

agile analysis atdd author business charts classic coach computers conference cool customer design economics fiction games HCI history improv integration interesting intro Java job aids language lean learning metaphor music myth patterns planning programmer refactoring resources reviews scrum software spreadsheet stories tdd team tester training XPlorations

Archives

counter for wordpress
Copyright © 2025 XP123. All Rights Reserved.
Theme: Catch Box by Catch Themes
Scroll Up