Commit b60f8eb2 authored by Thomas Knee's avatar Thomas Knee
Browse files


parent c4357c47
......@@ -16,9 +16,7 @@ repositories {
maven { url "" }
dependencies {
compile(group: 'info.cukes', name: 'cucumber-testng', version:'1.2.5') {
exclude(module: 'junit')
compile group: 'io.cucumber', name: 'cucumber-testng', version:'4.8.0'
compile group: 'net.masterthought', name: 'cucumber-reporting', version:'3.8.0'
compile group: 'com.github.scribejava', name: 'scribejava-apis', version:'2.5.3'
testCompile group: 'io.cucumber', name: 'cucumber-java', version:'4.8.0'
......@@ -2,6 +2,6 @@
Feature: Test Twitter Tweets
Scenario: 01. Get recent tweets from our Home Timeline
Given I post a tweet of "Hello World!! This is a test tweet"
When I retrieve the results of "/home_timeline.json"
Given a Twitter user posts a tweet of "Hello World!! This is a test tweet"
When they retrieve the results of "/home_timeline.json"
Then the most recent tweet in the Home Timeline is "Hello World!! This is a test tweet"
\ No newline at end of file
import cucumber.api.CucumberOptions;
import cucumber.api.testng.CucumberFeatureWrapper;
import cucumber.api.testng.TestNGCucumberRunner;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
import io.cucumber.testng.AbstractTestNGCucumberTests;
import io.cucumber.testng.CucumberOptions;
features = "src/test/resources/features",
glue = {"utils.hooks", "steps"},
tags = {"~@Ignore"},
plugin = {"html:target/cucumber-reports/cucumber-pretty"},
format = {
plugin = {"html:target/cucumber-reports/cucumber-pretty",
public class TestRunner {
private TestNGCucumberRunner testNGCucumberRunner;
@BeforeClass(alwaysRun = true)
public void setUpClass() throws Exception {
testNGCucumberRunner = new TestNGCucumberRunner(this.getClass());
@Test(groups = "cucumber", description = "Runs Cucumber Feature", dataProvider = "features")
public void feature(CucumberFeatureWrapper cucumberFeature) {
public Object[][] features() {
return testNGCucumberRunner.provideFeatures();
public class TestRunner extends AbstractTestNGCucumberTests {
@AfterClass(alwaysRun = true)
public void tearDownClass() throws Exception {
\ No newline at end of file
package utils.hooks;
import apis.BaseApiTests;
public class CucumberHooks {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment