๐Ÿš€ Everything is free โ€” help us improve! Submit feedback and shape the platform.
๐ŸงชTDD Challengeยทbeginnerยทโฑ๏ธ 20โ€“35mยทโญ 125 XP

M-083Design a Spec-Driven Feature Plan

Description

Nebula Corp wants to add a 'favorites' feature to their app. Instead of jumping straight to code, practice the spec-driven approach: write structured requirements with user stories and acceptance criteria, then break them into ordered implementation tasks. The function should take a feature description and return a structured spec object with requirements and tasks.

Test Cases (3)

Spec has title
Spec must have a title
Input:testSpecTitle()
Expected:CONTAINS:title
Has requirements with criteria
Requirements must have acceptance criteria
Input:testRequirements()
Expected:CONTAINS:acceptance
Validates incomplete spec
Empty spec should fail validation
Input:testValidation()
Expected:CONTAINS:false

Related Lessons

Click Run / Check to validate your solution