Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

hallvard/bdd-dsl

Repository files navigation

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)

About

DSL for Behaviour-Driven Development

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published