UI behavior specification language/tool
Context: Angular frontend, Cypress tests
I'm currently implementing a UI behavior specification tool. The idea is to be able to generate guided tutorial tours, automatically build a document (pdf) detailing the spec (customer requirement) and generate cypress tests that verify the UI was implemented as per the spec, from the spec. The spec itself is a declarative TS object definition based off of which I then generate ShepherdJs guided tours as well as cypress tests.
Is there tools or languages out there that aim for a similar thing? I'd like to research some alternative implementations to see how others solve this problem.
I realize it's a rather specific problem but hey, can't hurt to ask eh? :)
3 Replies
Have you come across Cucumber? It only does the first half which i.e. serves as a testing tool based on behaviour specs which you write in Gherkin syntax (‘Given I’, ‘When ‘I, ‘Then’)
https://github.com/cucumber/cucumber-js
GitHub
GitHub - cucumber/cucumber-js: Cucumber for JavaScript
Cucumber for JavaScript. Contribute to cucumber/cucumber-js development by creating an account on GitHub.
Not really the same thing but just sprung to mind when you were talking about specifications and testing. In particular, the Gherkin syntax is probably preferable to a TS object for describing a spec, in my opinion
That looks useful indeed. I have heard of Gherkin before but never actually used it. I'll keep both the language and this library in mind when I get to synchronize with my lead.
Thanks for the suggestion! :)