Scenario-Writing Exercise
Domain-Specific Language
We've been writing tests without thinking about how they will be implemented, and that's a fine thing to do: our goal is to explore and explain how the system will work.
In software, this is known as a domain-specific language.
We can take a linguistic point of view:
the phrases we use form a custom language
that has evolved to describe our system.
the phrases we use form a custom language
that has evolved to describe our system.
Consistent phrasing and terminology clarify
your intent and makes tests easier to automate.
your intent and makes tests easier to automate.
(Reading...)
Formatting Hints:
To format... | use this markup: |
---|---|
source code | {source:lang=java|lineNumbers=false}...{source} (Supported languages: java, cpp, csharp, c, python.) |
bold text | __some text__ |
italicized text | ~~some text~~ |
underlined text | @@some text@@ |
a method or class name | ``myMethod(...)`` |