}
private void addStoryTagIfPresent(TestOutcome testOutcome, Set<TestTag> tags) {
Story story = testOutcome.getUserStory();
if (story != null && shouldAddStoryTags()) {
tags.add(story.asTag());
}
}
private boolean shouldAddStoryTags() {
return environmentVariables.getPropertyAsBoolean(ThucydidesSystemProperty.USE_TEST_CASE_FOR_STORY_TAG,true);