Where MyTest is based on the name of the file, and is the first focused location which lets the user change the Spec name if desired. Pressing tab moves the focus to the name of the test (Foo). The user can change the name then press tab again to focus the test body.
IntelliJ also added an import for FunSpec automatically.
Desired feedback:
What spec styles and abbreviations should we use?
So far I have added:
sspec -> StringSpec
Perhaps FreeSpec is a better spec to focus on, given that it supports nesting. But I think we might harmonize them and settle on a final name for this style
bspec -> BehaviorSpec
fspec -> FunSpec
This one clashes a bit with FreeSpec and FeatureSpec
Maybe we can dogfood this one in the wild.. not a lot of users would find the feature w/o us advertising it somewhere.
When a user wants to define a new spec, they can:
fspec
to start defining a FunSpecfspec
expands into:Where
MyTest
is based on the name of the file, and is the first focused location which lets the user change the Spec name if desired. Pressing tab moves the focus to the name of the test (Foo
). The user can change the name then press tab again to focus the test body.IntelliJ also added an import for FunSpec automatically.
Desired feedback:
What spec styles and abbreviations should we use?
So far I have added:
sspec
-> StringSpecbspec
-> BehaviorSpecfspec
-> FunSpecMaybe we can dogfood this one in the wild.. not a lot of users would find the feature w/o us advertising it somewhere.