nullables-testing-style

Community

Write explicit, state-based tests without mocks.

Authordanielbush
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use this skill when refactoring code or writing tests in the Nullables style. It guides you to choose between new, .create(), and .createNull(), introduces infrastructure wrappers at the environment boundary, adds behavior simulation and output tracking, and encourages narrow, sociable, example-driven, state-based tests without mocks or spies.

Core Features & Use Cases

  • Clear construction rules: prefer new for the class under test and .createNull() for dependencies.
  • Infrastructure wrappers at the environment boundary to isolate I/O and provide configurable responses.
  • Behavior simulation to model external events without hitting real environments.
  • Output tracking to verify observable changes instead of spying on internal calls.
  • Example-driven, state-based tests that are easy to read and reason about.

Quick Start

Create a test using new for the class under test, wire dependencies with .createNull() for nulled environments, add a minimal infrastructure wrapper, and write a short state-based example.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: nullables-testing-style
Download link: https://github.com/danielbush/oneput/archive/main.zip#nullables-testing-style

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.