private void startSuiteWithStoryForFirstTest(final Story story) { if ((storyUnderTest == null) || (storyUnderTest != story)) { testSuiteStarted(story); } }
private void startSuiteWithStoryForFirstTest(final Story story) { if ((storyUnderTest == null) || (storyUnderTest != story)) { testSuiteStarted(story); } }
private void startSuiteWithStoryForFirstTest(final Story story) { if ((storyUnderTest == null) || (storyUnderTest != story)) { testSuiteStarted(story); } }
private void ensureThatTheTestSuiteStartedWith(Class<?> testClass) { if (!getBaseStepListener().testSuiteRunning()) { testSuiteStarted(testClass); } }
/** * Tells Thucydides that a new test suite (test case, specification,...) has started. * @param name */ public void testSuiteStarted(String name) { notifyEventBus().clear(); notifyEventBus().testSuiteStarted(Story.called(name)); }
/** * Tells Thucydides that a new test suite (test case, specification,...) has started. * @param name */ public void testSuiteStarted(String name) { notifyEventBus().clear(); notifyEventBus().testSuiteStarted(Story.called(name)); }
/** * Tells Thucydides that a new test suite (test case, specification,...) has started. * @param name */ public void testSuiteStarted(String name) { notifyEventBus().clear(); notifyEventBus().testSuiteStarted(Story.called(name)); }
private void startTestSuiteForFirstTest(Description description) { if (!getBaseStepListener().testSuiteRunning()) { StepEventBus.getEventBus().testSuiteStarted(description.getTestClass()); } }
private void handleTestSourceRead(TestSourceRead event) { testSources.addTestSourceReadEvent(event.uri, event); String featurePath = event.uri; Optional<Feature> possibleFeature = featureFrom(featurePath); possibleFeature.ifPresent( feature -> { featureTags = new ArrayList<>(feature.getTags()); resetEventBusFor(featurePath); initialiseThucydidesListenersFor(featurePath); configureDriver(feature, featurePath); Story userStory = userStoryFrom(feature, relativeUriFrom(event.uri)); getStepEventBus(event.uri).testSuiteStarted(userStory); } ); }
private void handleTestSourceRead(TestSourceRead event) { testSources.addTestSourceReadEvent(event.uri, event); String featurePath = event.uri; Optional<Feature> possibleFeature = featureFrom(featurePath); possibleFeature.ifPresent( feature -> { featureTags = new ArrayList<>(feature.getTags()); resetEventBusFor(featurePath); initialiseThucydidesListenersFor(featurePath); configureDriver(feature, featurePath); Story userStory = userStoryFrom(feature, relativeUriFrom(event.uri)); getStepEventBus(event.uri).testSuiteStarted(userStory); } ); }
private void startTestSuiteForStory(Story story) { String storyName = removeSuffixFrom(story.getName()); String storyTitle = NameConverter.humanize(storyName); net.thucydides.core.model.Story userStory = net.thucydides.core.model.Story.withIdAndPath(storyName, storyTitle, story.getPath()) .withNarrative(getNarrativeFrom(story)); StepEventBus.getEventBus().testSuiteStarted(userStory); registerTags(story); }
private void startTestSuiteForStory(Story story) { String storyName = removeSuffixFrom(story.getName()); String storyTitle = (isNotEmpty(story.getDescription().asString())) ? story.getDescription().asString() : NameConverter.humanize(storyName); net.thucydides.core.model.Story userStory = net.thucydides.core.model.Story.withIdAndPath(storyName, storyTitle, stripStoriesFolderFrom(story.getPath())) .withNarrative(getNarrativeFrom(story)); StepEventBus.getEventBus().testSuiteStarted(userStory); registerTags(story); }