diff --git a/test/behavior_tests/features/example.feature b/test/behavior_tests/features/example.feature deleted file mode 100644 index 849799a..0000000 --- a/test/behavior_tests/features/example.feature +++ /dev/null @@ -1,7 +0,0 @@ -Feature: Cucumber Basket - This is just testing to make sure i set up these tests correctly and they work - -Scenario: Add cucmbers to a basket - Given the basket has 2 cucumbers - When 4 cucumbers are added to the basket - Then the basket contains 6 cucumbers \ No newline at end of file diff --git a/test/behavior_tests/features/homeScreen.feature b/test/behavior_tests/features/homeScreen.feature deleted file mode 100644 index 65f8529..0000000 --- a/test/behavior_tests/features/homeScreen.feature +++ /dev/null @@ -1,32 +0,0 @@ -Feature: Home screen - Tests whether player can access desired view from the home screen - -Scenario: Start game - Given Game is loaded - When the player clicks the Start Game button - Then a new game is started - -Scenario: Access Settings screen - Given Game is loaded - When the player clicks the Settings button - Then the view switches to the settings screen - -Scenario: Access High Scores screen - Given Game is loaded - When the player clicks the High Scores button - Then the view switches to the high score screen - -Scenario: Access Customize screen - Given Game is loaded - When the player clicks the Customize button - Then the view switches to the customize screen - -Scenario: Access Stats screen - Given Game is loaded - When the player clicks the Stats button - Then the view switches to the stats screen - -Scenario: Quit game - Given Game is loaded - When the player clicks the 'Quit' button - Then the application is closed diff --git a/test/behavior_tests/step_defs/test_example.py b/test/behavior_tests/step_defs/test_example.py deleted file mode 100644 index 7ebc6fb..0000000 --- a/test/behavior_tests/step_defs/test_example.py +++ /dev/null @@ -1,22 +0,0 @@ -#import pytest_bdd methods and feature file for this test -import pytest -from pytest_bdd import scenario, scenarios, given, when, then, parsers -from pathlib import Path - -#global variable for this test -def pytest_configure(): - pytest.count = 0 - -scenarios('../features/example.feature') - -@given('the basket has 2 cucumbers') -def basket(): - pytest.count = 2 - -@when('4 cucumbers are added to the basket') -def add_cucumber(): - pytest.count = pytest.count + 4 - -@then('the basket contains 6 cucumbers') -def basket_has_total(): - assert pytest.count==6 \ No newline at end of file diff --git a/test/behavior_tests/step_defs/test_homeScreen.py b/test/behavior_tests/step_defs/test_homeScreen.py deleted file mode 100644 index 9bf5229..0000000 --- a/test/behavior_tests/step_defs/test_homeScreen.py +++ /dev/null @@ -1,24 +0,0 @@ -#import pytest_bdd methods and feature file for this test -import pytest -from pytest_bdd import * - -import menuStructure as menuS -from views import homeScreen -from assets import values - - -scenarios('../features/homeScreen.feature') - -@given('Game is loaded') -def home_Screen(): - menuS.set_game_menu(menuS.menu.HOME) - -@when('the player clicks the Start Game button') -def click_StartGame(): - homeScreen.check_click(.253, .498, .761, .797, noises, menuS.menu.GAME) - -@then('a new game is started') -def final_view(): - assert menuS.get_game_menu == 3 - -#we will be able to paremeterize this one test to work for all scenarios in the feature (swtich to all other screens) \ No newline at end of file