Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions __tests__/features/collision.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Feature: Collision

Scenario: Lose lives
Given there is an <enemy> in the screen
And the user has still lives
When the <enemy> collision in the planet
Then the user lose a live

Examples:
| enemy | lives |
| asteroid | 1 |
| lobster | 8 |
| rhino | 4 |
| beetle | 1 |
30 changes: 30 additions & 0 deletions __tests__/features/endGame.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Feature: End Game

Scenario: Winning game
Given there is an <enemy> in the screen
And the user has an score of less than <enemy_lives>
When the user hit the <enemy>
Then the <enemy> disappears
And the score sum more or equal than 50 points
And the user win the game

Examples:
| enemy | lives |
| asteroid | 1 |
| lobster | 8 |
| rhino | 4 |
| beetle | 1 |

Scenario: Losing game
Given there is an <enemy> in the screen
And the user has one live
When the <enemy> collision in the planet
Then the user lose a live
And the game ends

Examples:
| enemy |
| asteroid |
| lobster |
| rhino |
| beetle |
11 changes: 11 additions & 0 deletions __tests__/features/movement.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Feature: Movements

Scenario: Move the rocket
Given the game is started
And the user drags the mouse to the <direction>
Then the rocket is moving to the <direction>

Examples:
| direction |
| right |
| left |
Loading