Add a file to the current test or step
Create an attachment from a string
The attachement destination. All the attached files will be copied in this folder if it is not allready inside
The absolute path to the attachment
The file mime path
The attachment name
Create an attachement from string
auto a = Attachment.fromString("content"); a.name.should.equal("unknown"); a.mime.should.equal("text/plain"); readText(a.file).should.equal("content");
Convert an attachement to Json string
Attachment("dub", "dub.json", "text/json").toString.should.equal( `{"name":"dub","file":"dub.json","mime":"text/json"}` );
A struct representing an attachment for test steps