linusnorton
Member
- Joined
- 6 Jan 2017
- Messages
- 20
Hi,
I'm currently working on a project to create some BDD tests for the National Routeing Guide.
While I believe I understand some of the rules in the National Routeing Guide my actual rail & geographic knowledge is terrible and I am struggling to come up with scenarios to test the rules.
The plan is to produce these tests in the Gherkin syntax so that they would be available to anyone trying to understand the rules or data.
A crude example would be:
If anyone is willing to contribute it would be a great help. Either posting here or sending a PR direct to https://github.com/open-track/routeing-guide-tests is great.
Many thanks,
Linus
I'm currently working on a project to create some BDD tests for the National Routeing Guide.
While I believe I understand some of the rules in the National Routeing Guide my actual rail & geographic knowledge is terrible and I am struggling to come up with scenarios to test the rules.
The plan is to produce these tests in the Gherkin syntax so that they would be available to anyone trying to understand the rules or data.
A crude example would be:
Code:
Scenario: The geographically shortest route is always valid
Given a journey:
| SEV | alight | train |
| TON | change | train |
| HIB | stopping | train |
| TBW | egress | train |
Then the following routes should be:
| ***** | valid |
If anyone is willing to contribute it would be a great help. Either posting here or sending a PR direct to https://github.com/open-track/routeing-guide-tests is great.
Many thanks,
Linus
Last edited: