Giter Club home page Giter Club logo

bdd_java's Introduction

Synopsis

This project is used to automatically test the CompleteMarketplace

It is written in a BDD style using cucumber-jvm

Building

This project is built using a gradle wrapper. This means you do not need anything installed on your machine except a recent java version (~1.8.0...)

All you need to do is checkout the code and in the root of the project run gradlew tasks (./gradlew tasks on a mac or unix) to see a list of available tasks you can run

Running

To run this project, edit src/main/resources/local-configuration.properties to fill in the correct settings

Then, in the root directory run

gradlew clean test generateCompleteMarketPlaceJooqSchemaSource cucumber

This will generate the needed db files and run all of the cucumber tests in test/resources/

To use one of the other -configuration.xml files such as staging-configuration.xml (see here for some detail on these files) you need to pass a variable to gradle

You need to pass the variable environment which should be set to the initial part of the -configuration.xml filename

e.g. if you pass -Denvironment=staging it will load it's properties from the file staging-configuration.xml,

if you passed -Denvironment=production it would try to load production-configuration.xml

If you do not pass any -Denvironment= variable it will use local-configuration.xml by default

Details

The only part of the code you need to work with is the src/ folder, it contains ...

#####main/java/ The main/java structure contains the bulk of the project code.
It contains both the main logic code and the step classes that map the features to java code (see the cucumber site above for details on this)

#####main/resources/ The main/resources structure contains required configs and files
as well as the *-configuration.properties files

See here for details on the resources and properties files

#####test/java/ The test/java directory contains the unit test classes

#####test/resources/ This resources directory contains the structures for the feature files

@TODO
 Details on taging the tests (see https://github.com/cucumber/cucumber/wiki/Tags)
 Details on Jooq (see https://www.jooq.org)

Notes

This project makes use of editorconfig and lombok

So depending on your IDE, you may need to install plugins - see the respective sites for details

bdd_java's People

Contributors

mayukhg avatar

Watchers

James Cloos 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.