Question: I try to perform some Cucumber tests of a Spring boot application.

It seems like Spring Boot is not started before tests are running. 

What am i missing?

<https://bitbucket.org/oakstair/spring-boot-cucumber-example>

Answer: 
Let's say you have a feature file, `feature1`, and `glueCode` in `org.xyz.feature1`

```
@RunWith(Cucumber.class)
@CucumberOptions(
    plugin = {"pretty"},
    features = "src/test/java/resources/feature/feature1",
    glue = {"org.xyz.feature1"})
public class CucumberTest {

}

@RunWith(SpringRunner.class)
@SpringBootTest(classes = {Application.class},
                webEnvironment = WebEnvironment.RANDOM_PORT)
@ContextConfiguration
@Ignore
@Transactional
public class FeatureTest extends CucumberTest {

  @LocalServerPort
    int randomServerPort;

  @Given("........")
  public void test_1 {

   }

}

```
I found the problem and has updated the repo. 

I did the following to get it working:

* Added `RANDOM_PORT` to `@SpringBootTest`
* Added `@ContextConfiguration`
* Switched from `RestTemplate` to `TestRestTemplate`