Skip to content

Design for Testability Patterns #185

Closed

Description

@fkromer

I would like to port the "Design for Testability" pattern examples from xUnit Test Patterns: Refactoring Test Code (the patterns of this category are actually no test code but production code patterns) which are in Java and VB to Python. Anyone interested in joining...

Short and eventually outdated descriptions of the patterns can be found here:

  • Dependency Injection
    • Parameter Injection (implementation variant) ✔️
    • Constructor Injection (implementation variant) ✔️
    • Setter Injection (implementation variant) ✔️
  • Dependency Lookup
  • Humble Object
    • Poor Man's Humble Object (implementation variant)
    • True Humble Object (implementation variant)
    • Subclassed Humble Object (implementation variant)
    • Humble Dialog (context variant)
    • Humble Executable (context variant)
    • Humble Transaction Controller (context variant)
    • Humble Container Adapter (context variant)
  • Test Hook
    • System Under Test Hook (implementation variant)
    • Depended-on Component Hook (implementation variant)

Activity

  1. fkromer commented on Apr 4, 2017

    @fkromer
    Author

    pull request "constructor injection"

    It shouldn't be a big deal to refactor from constructor injection to parameter injection and setter injection.

  2. faif commented on Apr 15, 2017

    @faif
    Owner

    Effort already started and merged thus closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions