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

Provide a way to verify test resource follows arbitrary syntactic structure #13

Closed
incident-recipient opened this issue Jul 28, 2021 · 0 comments

Comments

@incident-recipient
Copy link
Collaborator

The current implementation requires phrases to be broken up individually and matched.Our TestSpecificationFactory essentially breaks up the input into sentences and then uses a rule that can match any of them and goes from there. This doesn't really constitute much of a grammar.

For example, the following nonsensical example is legal:

Given I shut the door
When I walk through the door
Then I can open the door

A grammar rule can be invoked that could require that the DSL we are testing be more formal. It could be empowered to complain when it encounters the above example to require a door to be opened before it is walked through, or open before it is shut.

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

No branches or pull requests

1 participant