Git Product home page Git Product logo

cucumber's Introduction

Cucumber (for Rust)

Build Status

Documentation

example run

Before Going Further

Please checkout the calculator example! That example is a full cargo project example showcasing Cucumber tests on real-ish behavior, and outputting a binary. It'll hopefully let you know if you like the testing style before really commiting to it.

Setup for your local Rust project

In your rust project:

Prerequisites

  • Install Ruby, preferably the same version as the one used here
  • Add a gemfile containing gem 'cucumber', similar to the example
    • Note: The examples don't have a Gemfile because they piggyback off of the gemfile in the main project

Project configuration

  • Add the cucumber dependency to your Cargo.toml
  • Add a feature directory, containing the following basic files
    • features/cuke.rs (based off the example)
    • features/step_definitions/cucumber_rust.wire (based off the example)
  • Add a cargo test entry to your Cargo.toml to hook cucumber tests into cargo test(based off example)

Usage

  • Run cargo test, and verify that cucumber executes with no steps
  • Add your *.feature files and step defintions as normal

Running the Cucumber tests for Cucumber

Just cargo test. Its configured (as in the examples) to be run with the rest of the tests.

cucumber's People

Contributors

acmcarther avatar

Watchers

 avatar  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.