-
Notifications
You must be signed in to change notification settings - Fork 5
Story Text Attribute
Tom Longhurst edited this page Apr 27, 2020
·
4 revisions
The [StoryText]
attribute is designed for outputting a human readable description of why we have created a group of tests. Who do they benefit and why are they needed?
Annotate your test classes with a [StoryText]
attribute
[Story(AsA = "test user",
IWant = "to test",
SoThat = "things work")]
public class MyTests : BDTestBase
{
...
}
There is also the property AsAn
for if AsA
doesn't read well.
[Story(AsAn = "authenticated customer",
IWant = "to access my account",
SoThat = "I can check my details")]
public class MyTests : BDTestBase
{
...
}