Unit Tests
Unit Test Reports
You can find the generated unit test report here.
Blockly Compiler
Hex to RGB Conversion
Details
Scale Bitmap
Details
Bitmap String Representation
Details
Unroll Workspace Blocks
Details
Find Path to Exit
Details
Get Variable Name
Details
Get Bitmap Size
Details
- Check that the compiler is able to retrieve size information from the block definitions array based on the block type.
Compile a Game
Details
Compiled Game Runs
Details
Flask Server
Flask Server Starts
Details
Retrieve Saved Workspaces (Games)
Details
- Check that the Flask server correctly exposes saved workspaces through the /games endpoint.
-
Input / User action
- Call to http://localhost:8000/games
-
Expected Result
- An array of objects containing a workspace's name, author, description, and time last modified.
-
Retrieve Games from Community Hub
Details
Retrieve Games from a Classroom
Details
Access Editor From External Device
Details
- Check that the Flask server correctly serves the editor.
-
Input / User action
- Navigate to http://localhost:8000/editor
-
Expected Result
- Game selection menu is displayed, allowing the user to choose a saved workspace to edit or create a new one.
-
Access Editor From BlastPad
Details
Access Home Screen
Details
- Check that the Flask server correctly serves the home screen.
-
Input / User action
- Navigate to http://localhost:8000/
-
Expected Result
- The home screen is displayed.
-
Save Game
Details
- Check that the Flask server correctly saves a workspace.
-
Input / User action
- POST request to http://localhost:8000/saveWithoutRun with a workspace as body data.
-
Expected Result
- The POSTed workspace is compiled and saved. Errors in compilation will cause the save request to fail and return 400.
-
Download Game
Details
- Check that the Flask server correctly downloads a game from the Community Hub.
-
Input / User action
- GET request to http://localhost:8000/download/community/[GAMENAME].
-
Expected Result
- The requested workspace (game) is saved to disk.
-
Run Compiler on Saved Game
Details
- Check that the Flask server is able to compile a saved game.
-
Input / User action
- GET request to http://localhost:8000/compile?game=[GAMENAME]
-
Expected Result
- The Blockly Compiler is run on [GAMENAME].json and the resulting python code is saved to /blockly/compiled_games.
-
Get Local WiFi Networks
Details
- Check that the Flask server is able to scan for local wifi networks.
-
Input / User action
- GET request to http://localhost:8000/get_wifi_networks
-
Expected Result
- An array of objects containing information about nearby wifi access points.
-