Code Monkey home page Code Monkey logo

bdd-dsl's Introduction

bdd-dsl

DSL for Behaviour-Driven Development

Development

The BDD DSL is developed using Eclipse and the Xtext framework. To get started, perform the following steps:

  • install (or download and unzip) the Eclipse DSL package
  • clone this repository
  • start Eclipse on a new workspace
  • invoke the General > Existing Projects into Workspace wizard
  • select the newly cloned repository as the root folder and select all the projects

The no.hal.bdd.xtext project is the main project, containing the DSL grammar and custom DSL logic.

Trying out the DSL

To try the DSL, you need to launch another Eclipse instance from the development environment with the DSL included:

  • invoke Run > Run Configurations...
  • if there isn't already an Eclipse Application launch configuration, create one, and launch it
  • import using the General > Existing Projects into Workspace wizard, but only select the no.hal.bdd.xtext.examples project
  • open sample.bdd in the no.hal.bdd.xtext.examples package in the src folder

Changing the DSL

The DSL is mainly defined by the grammar, residing in no.hal.bdd.xtext/src/no.hal.bdd.BddDsl.xtext. After changing the grammar, derived files are generated by invoking Run As > Generate Xtext Artifacts.

Other files provide custom logic, e.g.

  • BddDslValidation.xtend - validation methods check the validity of the model instance (resulting from parsing the text)
  • BddDslScopeProvider.xtext - defines which object are in scope for specific references (in the grammar)

bdd-dsl's People

Contributors

hallvard avatar

Watchers

 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.