Skip to main content

Questions & Answers

Answers to questions from the community. Have one that isn't here? Ask it and it'll show up on this page once answered.

2 of 2 questions · 2 answered

  • I can't work out what decides the generated class's name — the class I put @Gherkin2JUnit on, or the spec file. And what decides which package it ends up in?

    Answer from dmytro-stasyuk

    Both come from the spec file itself — not from the class you put the annotation on. The name is the spec file's own name, without its extension, plus a suffix: specs/ShoppingCart.specb → ShoppingCartScenarios The suffix is Scenarios by…

    dmytro-stasyukSep 6, 20261 reply1
  • I see both .feature and .specb used across the docs and examples. Is there any difference in how SpecBinder treats them, and is there a reason to pick one over the other?

    Answer from dmytro-stasyuk

    Either one works. Nothing about how SpecBinder reads your spec or generates your tests changes between them, and you can switch later by renaming the file. .specb is SpecBinder's own extension, and the one used throughout these docs and…

    dmytro-stasyukSep 6, 20261 reply1