Skip to content

Commit 2422016

Browse files
Fix Allure.SpecFlow Attachments examples
1 parent dd2ba71 commit 2422016

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Allure.SpecFlowPlugin/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ You can add attachments to an Allure report from your step bindings:
139139
```csharp
140140
using Allure.Commons;
141141
...
142-
AllureLifecycle.AddAttachment(path, "Attachment Title");
142+
AllureLifecycle.Instance.AddAttachment(path, "Attachment Title");
143143
// or
144-
AllureLifecycle.AddAttachment("Attachment Title", "application/txt", "path");
144+
AllureLifecycle.Instance.AddAttachment("Attachment Title", "application/txt", "path");
145145
// where "application/txt" - type of your attachment
146146
```

0 commit comments

Comments
 (0)