This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/examplefiles/bdd/example.feature
xuan 97e5c04a61
Add support for BDD features / stories (#1803)
* Create BDD.py

Initialize the lexer file of BDD
Add keywords of BDD

* Update the 'RegexLexer'

* Edit and test

* Update BDD.py

* Update BDD.py

* Update the BddLexer file

* Update the BddLexer of root tokens

* edit bdd

Add regular expression for tokens

* edit bdd

Add regular expression for tokens

* add .gitignore

* updata bdd.lexer

* Delete bdd.py

* Update the Keywords, Numbers, Punctuation token

* bdd.py

Assign different colors to keywords, punctuation, numbers, and variables.

* Update the BddLexer file

* Update bdd.py

Fix the file name.

* Add the detection for '@'

Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com>

* Update bdd.py

Add detection of double quotes.

Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com>

* Fix the double quotes

* fix the quote recognition

* add comments

* update the root dir

* add bdd test cases

* Delete .DS_Store

* Delete .DS_Store

* Delete .DS_Store

* remove DS file

* restore the gitignore file

* update the bdd lexer

* update the bdd lexer

* update the whitespace highlight

* update the whitespace highlight

* refactor the bdd.py

* update the punctuation

* update the punctuation

* update bdd token

Change "." to the "\S+",
Which reduce the test output file size.

Co-Authored-By: OMGJL <8707895+OMGJL@users.noreply.github.com>

* Update bdd.py

Reduce the new token for each space

Co-authored-by: Hongyuan Yan <hongyuan.yan@student.adelaide.edu.au>
Co-authored-by: OMGJL <lzhsjunkmail@gmail.com>
Co-authored-by: Hongyuan Yan <54675432+kirito330824@users.noreply.github.com>
Co-authored-by: Jessie2110 <71688609+Jessie2110@users.noreply.github.com>
Co-authored-by: Jessie2110 <wuqiong2110@gmail.com>
Co-authored-by: OMGJL <8707895+OMGJL@users.noreply.github.com>
2021-11-27 15:55:49 +01:00

31 lines
No EOL
877 B
Gherkin

#!text
View Quotes should do something
Meta:
@verifies G989
Feature: Serve coffee
Coffee should not be served until paid for
Coffee should not be served until the button has been pressed
If there is no coffee left then money should be refunded
Background:
Given a global administrator named "Greg"
And a blog named "Greg's anti-tax rants"
And a customer named "Dr. Bill"
And a blog named "Expensive Therapy" owned by "Dr. Bill"
Scenario: Buy last coffee
Given there are 1 coffees left in the machine
And I have deposited 1$
When I press the coffee button
Then I should be served a coffee
Scenario Outline: eating
Given there are <start> cucumbers
When I eat <eat> cucumbers
Then I should have <left> cucumbers
Examples:
| start | eat | left |
| 12 | 5 | 7 |
| 20 | 5 | 15 |