1

I want to run cucumber for my test, but without run first my api rest, for this reason I include @IntegrationTest in my RunCakes. class, but when I run my integration test, the application don't start.

@RunWith(Cucumber.class)
@CucumberOptions(format = { "pretty", "html:target/cucumber-html-  report" }, dryRun = false, strict = true, features = { "classpath:features" })
@IntegrationTest({ "server.port=9001", "spring.cloud.config.server.git.uri=file:./target/repos/configuration-sample", 
"spring.cloud.config.server.bootstrap=false", "ldap.uri=" , "security.ignored="})
public class RunCukesIT {

}
nole
  • 1,422
  • 4
  • 20
  • 32

1 Answers1

0

You're most likely looking for @WebIntegrationTest instead of @IntegrationTest.

ci_
  • 8,594
  • 10
  • 39
  • 63
  • and how can I run my api?. I run cucumber, but my application (spring boot) doesn't run. – nole Apr 27 '15 at 17:44
  • I'm not familiar with cucumber, just noticed you're using the wrong annotation. Was worth a shot. Did you have a look at this answer? http://stackoverflow.com/questions/20717677/any-got-spring-boot-working-with-cucumber-jvm – ci_ Apr 28 '15 at 08:41