Skip to content

Commit 1505447

Browse files
committed
Update readme.md
1 parent 926296e commit 1505447

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

readme.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,25 @@ Splitting individual devices, or groups of devices, over multiple tests can be u
108108

109109
## When to run tests
110110

111-
Tests that execute in the 10s of seconds range can significantly slow down a test run. As such it is recomended that email preview tests are configured to be explicit in `Debug` mode.
111+
Tests that execute in the 10s of seconds range can significantly slow down a test run. As such it is recommended that email preview tests are configured to be explicit in `Debug` mode.
112112

113+
```cs
114+
[Test]
115+
#if DEBUG
116+
[Explicit]
117+
#endif
118+
public async Task GeneratePreview()
119+
{
120+
var preview = new EmailPreview
121+
{
122+
Html = html,
123+
Devices = [Device.Outlook2019]
124+
};
125+
await Verify(preview);
126+
}
127+
```
128+
129+
This way developer can opt in to manually run specific previews, and on the build server previews test will allways be executed.
113130

114131

115132
## Icon

0 commit comments

Comments
 (0)