Giter Site home page Giter Site logo

kasthurikranthikumar / cucumber-java-skeleton Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cucumber/cucumber-java-skeleton

0.0 0.0 0.0 491 KB

This is the simplest possible setup for Cucumber-JVM using Java.

License: MIT License

Java 55.02% Kotlin 37.96% Gherkin 7.02%

cucumber-java-skeleton's Introduction

Cucumber-Java Skeleton

This is the simplest possible build script setup for Cucumber using Java. There is nothing fancy like a webapp or browser testing. All this does is to show you how to install and run Cucumber!

There is a single feature file with one scenario. The scenario has three steps, two of them pending. See if you can make them all pass!

Get the code

Git:

git clone https://github.com/cucumber/cucumber-java-skeleton.git
cd cucumber-java-skeleton

Subversion:

svn checkout https://github.com/cucumber/cucumber-java-skeleton/trunk cucumber-java-skeleton
cd cucumber-java-skeleton

Or download a zip file.

Use Maven

Open a command window and run:

./mvnw test

This runs Cucumber features using Cucumber's JUnit Platform Engine. The Suite annotation on the RunCucumberTest class tells JUnit to kick off Cucumber.

Use Gradle

Open a command window and run:

 ./gradlew test --rerun-tasks --info

This runs Cucumber features using Cucumber's JUnit Platform Engine. The Suite annotation on the RunCucumberTest class tells JUnit to kick off Cucumber.

Overriding options

The Cucumber runtime uses configuration parameters to know what features to run, where the glue code lives, what plugins to use etc. When using JUnit, these configuration parameters are provided through the @ConfigurationParameter annotation on your test.

For available parameters see: io.cucumber.junit.platform.engine.Constants

Run a subset of Features or Scenarios

Specify a particular scenario by line

@SelectClasspathResource(value = "io/cucumber/skeleton/belly.feature", column = 3)

In case you have multiple feature files or scenarios to run against repeat the annotation.

You can also specify what to run by tag:

@IncludeTags("zucchini")

cucumber-java-skeleton's People

Contributors

renovate-bot avatar mpkorstanje avatar aslakhellesoy avatar tsundberg avatar mlvandijk avatar brasmusson avatar davidgrayston avatar larseckart avatar ltpquang avatar riggs333 avatar wilsoncampusano avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.