-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(acceptance): acceptances tests for raven (#459)
- Loading branch information
1 parent
df6c976
commit 0e29af5
Showing
10 changed files
with
14,795 additions
and
14,753 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
tests/acceptance/features/game/data/raven-mark-penalty-is-three-option.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"roles": { | ||
"raven": { | ||
"markPenalty": 3 | ||
} | ||
} | ||
} |
71 changes: 71 additions & 0 deletions
71
tests/acceptance/features/game/features/role/raven.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@raven-role | ||
|
||
Feature: 馃惁鈥嶁瑳 Raven role | ||
|
||
Scenario: 馃惁鈥嶁瑳 Raven marks a player but can also skip | ||
Given a created game with options described in file no-sheriff-option.json and with the following players | ||
| name | role | | ||
| Antoine | raven | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Camille | villager | | ||
| Thomas | villager | | ||
Then the game's current play should be raven to mark | ||
|
||
When the player or group skips his turn | ||
Then nobody should have the active raven-marked from raven attribute | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Thomas | ||
Then the player named Thomas should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be raven to mark | ||
|
||
When the raven marks the player named JB | ||
Then the player named JB should have the active raven-marked from raven attribute | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named JB | ||
Then the player named JB should be murdered by werewolves from eaten | ||
And the player named JB should not have the active raven-marked from raven attribute | ||
|
||
When the player or group skips his turn | ||
Then the game's current play should be raven to mark | ||
|
||
When the raven marks the player named Antoine | ||
Then the player named Antoine should have the active raven-marked from raven attribute | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Camille | ||
Then the player named Camille should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When the player or group skips his turn | ||
Then the player named Antoine should be murdered by all from vote | ||
|
||
Scenario: 馃惁鈥嶁瑳 Raven marks a player with a greater mark than the default one with good option | ||
Given a created game with options described in file no-sheriff-option.json, raven-mark-penalty-is-three-option.json and with the following players | ||
| name | role | | ||
| Antoine | raven | | ||
| Olivia | werewolf | | ||
| JB | villager | | ||
| Camille | villager | | ||
| Thomas | villager | | ||
Then the game's current play should be raven to mark | ||
|
||
When the raven marks the player named JB | ||
Then the player named JB should have the active raven-marked from raven attribute | ||
And the game's current play should be werewolves to eat | ||
|
||
When the werewolves eat the player named Thomas | ||
Then the player named Thomas should be murdered by werewolves from eaten | ||
And the game's current play should be all to vote | ||
|
||
When all vote with the following votes | ||
| voter | target | | ||
| Olivia | Camille | | ||
| JB | Camille | | ||
| Antoine | Olivia | | ||
Then the player named JB should be murdered by all from vote |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.