YoYoGames / GM-TestFramework

Repository for GameMaker's Test Framework
Other
20 stars 10 forks source link

BasicVariableTestSuite: Add new tests / clean up to match 2024.4 release #50

Closed AdamBorek closed 3 months ago

AdamBorek commented 3 months ago

Description

Couple changes to the BasicVariableTestSuite script

Additions

Global variable get names test A test that checks whether global variables' names are correct once they are added to the list of global variables.

Global variable name count test A test that checks whether the count of global variables is the correct one, once a bunch of new ones have been added.

Adding more global built-in variables to test The list of global built-in variables is incomplete in "builtin_constant_varnames_test", the rest of them should be added.

Cleanups Some of the tests do not clean up / remove the variables that were added to the list of global variables during testing, these should be removed once the test is done.

Script Name

BasicVariableTestSuite

Steps To The Task

Global variables get names test

  1. Create new fact inside BasicVariableTestSuite
  2. Create a bunch of new variables with different names
  3. Loop through global variables and check if they are all there with their expected names
  4. Delete variables that were added for testing

Global variables name count test

  1. Create new fact inside BasicVariableTestSuite
  2. Create a bunch of new variables with different names
  3. Check if the right amount of variables have been added
  4. Delete variables that were added for testing

Adding more global built-in variables

Cleanups