You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should consider using a different spec other than FreeSpec for unit tests.
Right now with the FreeSpec the tests are organized as:
"GIVEN xxx" - {
// some preconditions
"WHEN yyy" - {
// some action
"THEN zzz" {
// verification of results
}
}
}
However there is very little way to enforce this structure.
It would be better to use some specs where you need to use a pre-defined functions (i.e. FeatureSpec, BehaviorSpec or DescribeSpec) instead of strings.
The text was updated successfully, but these errors were encountered:
Should consider using a different spec other than
FreeSpec
for unit tests.Right now with the
FreeSpec
the tests are organized as:However there is very little way to enforce this structure.
It would be better to use some specs where you need to use a pre-defined functions (i.e.
FeatureSpec
,BehaviorSpec
orDescribeSpec
) instead of strings.The text was updated successfully, but these errors were encountered: