CtrlK
BlogDocsLog inGet started
Tessl Logo

haletothewood/behavioural-tdd

Execute a strict Red-Green-Refactor TDD cycle — one requirement at a time — in any language or framework.

97

1.11x

Quality

100%

Does it follow best practices?

Impact

94%

1.11x

Average score across 5 eval scenarios

Overview
Skills
Evals
Files

task.mdevals/scenario-5/

Scenario: REFACTOR Phase — Python / pytest

You are using the behavioral-tdd skill. Phases 1 and 2 are complete.

Passing behavioral test:

def test_temperature_converter_celsius_to_fahrenheit():
    converter = TemperatureConverter()
    assert converter.to_fahrenheit(0) == 32.0
    assert converter.to_fahrenheit(100) == 212.0

Current Shameless Green implementation:

class TemperatureConverter:
    def to_fahrenheit(self, celsius):
        if celsius == 0:
            return 32.0
        if celsius == 100:
            return 212.0

Execute Phase 3 (REFACTOR). Improve the code quality. The behavioral test must remain GREEN throughout. Include a brief summary of what you changed and why.

Install with Tessl CLI

npx tessl i haletothewood/behavioural-tdd@1.8.0

evals

SKILL.md

tile.json