Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support a Given/When/Then declaration syntax #50

Closed
greghaskins opened this issue Nov 25, 2016 · 3 comments
Closed

Support a Given/When/Then declaration syntax #50

greghaskins opened this issue Nov 25, 2016 · 3 comments

Comments

@greghaskins
Copy link
Owner

A feature request from @ashleyfrieze. It would be cool to be able to declare specs with a syntax similar to Cucumber.

This could either be a Spectrum add-on like rspec-given is for RSpec or the beginnings of multiple interfaces like in Mocha.

@ashleyfrieze
Copy link
Contributor

ashleyfrieze commented Nov 26, 2016

The end-game of this for me is:

  • Make it easy to use Feature/Scenario/Given/When/Then/And to structure specs
    • Note: this means that the lowest unit of this Gherkin-style spec is actually a step, not an independent spec as it is with the describe/it syntax
  • Treat the execution of Given/When/Then/And as a single spec, so any failure will apply to all steps within the parent
  • Allow for the sharing of test execution state between steps - this is pretty much essential, since the Then step is usually asserting the outcome of executing a Then step - so it needs to be able to probe the result of Then
  • Optional: it might be nice to be able to output pure Gherkin from Spectrum. In fact, it might be nice to be able to render Spectrum in more than just the JUnit runner UI and surefire/failsafe/etc reports.

greghaskins added a commit that referenced this issue Nov 28, 2016
Adding Gherkin-like feature set, see #50
@ashleyfrieze
Copy link
Contributor

Now you've merged #51 does this close?

@greghaskins
Copy link
Owner Author

Closed by #51.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants