Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BasicTilemapTestSuite: Create new TestSuite for testing Tilemap functionality #51

Closed
5 tasks done
Indibulous opened this issue Jun 12, 2024 · 0 comments · Fixed by #56
Closed
5 tasks done

BasicTilemapTestSuite: Create new TestSuite for testing Tilemap functionality #51

Indibulous opened this issue Jun 12, 2024 · 0 comments · Fixed by #56
Assignees
Labels
enhancement New feature or request

Comments

@Indibulous
Copy link
Contributor

Indibulous commented Jun 12, 2024

Description

A test suite should be developed and added to the framework to test tilemap functionality, as this is an area of functionality that is currently missing from the framework.

Requirements

The project should be up to date with 2024.4 release.

It should include facts/theories/testAsyncs that cover the following functions:

  • layer_tilemap_get_id
  • layer_tilemap_exists
  • layer_tilemap_create
  • layer_tilemap_destroy
  • tilemap_tileset
  • tilemap_clear
  • tilemap_x
  • tilemap_y
  • tilemap_set
  • tilemap_set_at_pixel
  • tilemap_set_mask
  • tilemap_set_global_mask
  • tilemap_set_width
  • tilemap_set_height
  • tilemap_get_mask
  • tilemap_get_global_mask
  • tilemap_get_tileset
  • tilemap_get_frame
  • tilemap_get_tile_width
  • tilemap_get_tile_height
  • tilemap_get_width
  • tilemap_get_height
  • tilemap_get_x
  • tilemap_get_y
  • tilemap_get
  • tilemap_get_at_pixel
  • tilemap_get_cell_x_at_pixel
  • tilemap_get_cell_y_at_pixel
  • draw_tilemap
  • tile_get_empty
  • tile_get_index
  • tile_get_flip
  • tile_get_mirror
  • tile_get_rotate
  • tile_set_empty
  • tile_set_index
  • tile_set_flip
  • tile_set_mirror
  • tile_set_rotate
  • draw_tile

These facts/theories/testAsyncs should test the functions in their expected use case, as well as how they handle invalid arguments.

Steps To The Task

  • Create new testSuite "BasicTilemapTestSuite"
  • Add facts/theories/testAsyncs to test the required functions. Most of these will include the following steps:
    • Create a layer and tilemap to use for the test
    • Test get function in core use case
    • Test get function with invalid arguments
    • Test set function in core use case
    • Test set function with invalid arguments
    • Destroy layer and tilemap
  • Ensure tests are working correctly and in-line with documentation
  • Any errors discovered in GameMaker functionality or documentation during development should be reported as issues in the GameMaker-Bugs repository
  • Any errors with the framework itself should be reported as issues within this repository
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant