ThucydidesRunner runner = new ThucydidesRunner(FailThenPassSample.class,
new WebDriverFactory(environmentVariables),
new SystemPropertiesConfiguration(environmentVariables));
CapturingNotifier notifier = new CapturingNotifier();
runner.run(notifier);
List<TestOutcome> outcomes = runner.getTestOutcomes();
assertThat(outcomes.size(), is(1));
assertThat(outcomes.get(0).getResult(), is(TestResult.SUCCESS));
assertThat(notifier.failed, is(false));