cucumber-jvm

30 views
Skip to first unread message

kirubanand ramasamy

unread,
Nov 18, 2015, 7:27:29 AM11/18/15
to Cukes
i need to execute  a .java file from windows command prompt as a junit test


package runner;

import org.junit.runner.RunWith;
import cucumber.api.CucumberOptions;
import cucumber.api.junit.Cucumber;

@RunWith(Cucumber.class)
@CucumberOptions(features = "Feature", glue = { "stepdefinition" }, monochrome = true, dryRun = false)

public class Testrunner {

}

Paolo Ambrosio

unread,
Nov 19, 2015, 2:45:16 AM11/19/15
to cu...@googlegroups.com
On Wed, Nov 18, 2015 at 12:14 PM, kirubanand ramasamy
<capki...@gmail.com> wrote:
> i need to execute a .java file from windows command prompt as a junit test

You would normally use a build tool like Gradle
(https://github.com/cucumber/cucumber-jvm/tree/master/examples/java-gradle)
or Maven (https://github.com/cucumber/cucumber-java-skeleton).

For how to install and run those tools, please refer to their own
documentation, or ask any Java developer you know for help :-)

> package runner;
>
> import org.junit.runner.RunWith;
> import cucumber.api.CucumberOptions;
> import cucumber.api.junit.Cucumber;
>
> @RunWith(Cucumber.class)
> @CucumberOptions(features = "Feature", glue = { "stepdefinition" },
> monochrome = true, dryRun = false)
>
> public class Testrunner {
>
> }
>
> --
> Posting rules: http://cukes.info/posting-rules.html
> ---
> You received this message because you are subscribed to the Google Groups
> "Cukes" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cukes+un...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages