raml-org / raml-spec

RAML Specification
http://raml.org
3.87k stars 858 forks source link

BDD #198

Open vromero opened 8 years ago

vromero commented 8 years ago

It would be great t have BDD as an optional extension in RAML.

Having a DSL for BDD, either as YAML or as some other parseable language, i.e:

- testCases:
  - given: 
        authorization("myAuthorization")
  - when:
        get("/price")
  -then:
        body("price", is(new BigDecimal(12.12))

This would allow (between other goodies) the automatic creation of integration tests, and the validation of RAML files and APIs using implementation agnostic tooling.

usarid commented 8 years ago

Victor, could you see if you can model that out robustly in RAML 1.0 with the new typed annotations capabilities, directly on top of an API definition? You could use the new overlays feature to separate test suites out of the main RAML file.

On Wed, Nov 11, 2015 at 2:23 PM, vromero notifications@github.com wrote:

It would be great t have BDD as an optional extension in RAML.

Having a DSL for BDD, either as YAML or as some other parseable language, i.e:

  • testCases:
    • given: authorization("myAuthorization")
    • when: get("/price") -then: body("price", is(new BigDecimal(12.12))

This would allow (between other goodies) the automatic creation of integration tests, and the validation of RAML files and APIs using implementation agnostic tooling.

— Reply to this email directly or view it on GitHub https://github.com/raml-org/raml-spec/issues/198.