What is TDD
Motivation for writing this: teach the TDD workflow with GAST.
Why do TDD? Expected outcomes. Reference GAST. Mention other tools. W
TDD Workflow
Look at the code or do some white boarding/thinking about what code change you want to make. Once you identify your opening move--change existing code or create something brand new, start the TDD flow.
Tutorial
Step 0, Setup GAS Project
Step 1, Define the next simplest step in functionality
Describe what is meant by simplest. And not necessarily complete. Just a step.
Step 2, Work on Test until it has a fully functioning FAILURE
The test should and what it's testing should compile but not comprise of the product code yet. Said another way, the test should be completely formed (meaning no errors or exceptions occurring in the test code) and successfully calling your product code (which is simply a stub at the beginning).
No comments:
Post a Comment