Giter Site home page Giter Site logo

jand3r / swift-behave Goto Github PK

View Code? Open in Web Editor NEW
3.0 2.0 1.0 193 KB

Behaviour-driven testing framework on top of the Xcode UI Tests that allows to define acceptance tests using a natural language that all team members understand.

License: MIT License

Ruby 2.61% Swift 77.03% Objective-C 18.29% Gherkin 2.06%
swift xcode behaviour-driven testing natural-language test-automation gherkin bdd bdt ui-testing

swift-behave's People

Contributors

jand3r avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

ringsheep

swift-behave's Issues

Execute scenarios in the order of their appearance in the story file

Depending on the overall structure of your test cases it could be that you like to define scenarios that are building on each other instead of re-launching the app under test for each scenario. Therefore it is essential that the scenarios are executed in the same order that they are defined in the .story file.

Setting scenario-specific app environment variables

Add a statement that allows to set environment variables on a per-scenario-basis.

With this feature you can control some of your app's behaviour to allow testing variants without changing productive code, e.g. you could provide a CLIENT_ID to control which mock data is returned at runtime.

Support for "Scenario Outline" and "Examples"

It should be possible to use placeholders in a scenario and fill them from a table of variants. In Gherkin this can be done via a Scenario Outline followed by an Examples table. Placeholders are specified like e.g. <variable>. The Examples table contains a row for each scenario outline execution and has a column for each placeholder used.

Add language construct to execute actions multiple times

Support of a language construct to execute a "when" action multiple times...

Example: Instead of repeating the same line multiple times

When I add the item with barcode 123456 to the basket
And I add the item with barcode 123456 to the basket
And I add the item with barcode 123456 to the basket

write this:

When I add the item with barcode 123456 to the basket 3 times

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.