Skip to content

Instantly share code, notes, and snippets.

@Ajwah
Last active July 24, 2020 23:53
Show Gist options
  • Save Ajwah/7862c8b40137666fa3808d7bcb7fdda2 to your computer and use it in GitHub Desktop.
Save Ajwah/7862c8b40137666fa3808d7bcb7fdda2 to your computer and use it in GitHub Desktop.

Revisions

  1. Ajwah renamed this gist Jul 24, 2020. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions gistfile1.txt → property.feature
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@
    ```gherkin
    @hp
    Property: HP
    HP stands for health points and denotes whether an entity is alive or
    @@ -32,5 +31,4 @@ Scenario Outline: Every @entity shall inevitably die
    And I have @another @entity: B with @valid @hp
    When A strikes B
    Then the @hp of B will decrement by 1
    And B will continue to be struck until it has @died
    ```
    And B will continue to be struck until it has @died
  2. Ajwah revised this gist Jul 24, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    ```gherkin
    @hp
    Property: HP
    HP stands for health points and denotes whether an entity is alive or
    @@ -31,4 +32,5 @@ Scenario Outline: Every @entity shall inevitably die
    And I have @another @entity: B with @valid @hp
    When A strikes B
    Then the @hp of B will decrement by 1
    And B will continue to be struck until it has @died
    And B will continue to be struck until it has @died
    ```
  3. Ajwah created this gist Jul 24, 2020.
    34 changes: 34 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,34 @@
    @hp
    Property: HP
    HP stands for health points and denotes whether an entity is alive or
    dead.

    @valid
    Given HP
    When valid
    Then it must be a natural number
    And greater than or equal to 0
    And less than or equal to 100

    @entity
    Property: Entity
    Entity stands for any character; friend or foe

    @an@another
    Given an entity
    Then it can be any of below:
    |Hero|
    |Damsel in distress|
    |Monster|

    @dead@died
    Given an entity
    When dead
    Then it has 0 @hp

    Scenario Outline: Every @entity shall inevitably die
    Given I have @an @entity: A with @valid @hp
    And I have @another @entity: B with @valid @hp
    When A strikes B
    Then the @hp of B will decrement by 1
    And B will continue to be struck until it has @died