Struct Story
Attribute that sets the story label
struct Story;
Methods
| Name | Description |
|---|---|
labels
()
|
Returns the labels that set the feature label |
Example
Attach the readme file
auto attachment = Attachment .fromFile("readme file", "README.md", "text/plain");
attachment .file .exists .should .equal(true);
Example
Attachment.destination set on one thread is the same on another thread
import core .thread : Thread;
auto previousDestination = Attachment .destination;
scope(exit) Attachment .destination = previousDestination;
Attachment .destination = "artifacts-dir";
string workerDestination;
auto worker = new Thread({ workerDestination = Attachment .destination; });
worker .start();
worker .join();
workerDestination .should .equal("artifacts-dir");