Go to file
Alexander Weber d5c9c9eb8c fix error with checks/unobtainable_items.lua 2022-01-26 18:46:11 +01:00
checks fix error with checks/unobtainable_items.lua 2022-01-26 18:46:11 +01:00
textures default dependency removed 2016-11-04 15:26:48 +01:00
LICENSE Initial commit 2016-09-09 22:40:43 +02:00
README.md Update README.md 2017-01-21 01:26:39 +01:00
depends.txt remove smartfs from this mod, set optional dependency to smartfs mod 2016-11-15 21:39:21 +01:00
description.txt Add description and screenshot 2016-11-05 19:25:14 +01:00
init.lua Fix for #19 2020-03-03 16:06:59 +01:00
mod.conf added optional support for smartfs forms and more enhancements 2016-10-24 23:43:44 +02:00
modutils.lua modutils update 2017-03-19 03:09:40 +01:00
screenshot.png Add Minetest-compatible screenshot 2017-08-02 01:03:43 +02:00
screenshot_20170121_011613.png Global variables explorer implemented 2017-01-21 01:17:27 +01:00
screenshot_20170121_012152.png screenshot updated 2017-01-21 01:22:28 +01:00
smartfs.lua smartfs update to upstream version 2018-01-29 22:50:35 +01:00
smartfs_forms.lua mask \n+\t in keys and values. Fixes #17 (second try) 2017-08-02 17:35:25 +02:00
storage.lua mark saved data private 2018-01-26 16:57:54 +01:00

README.md

QA Block to run checking scripts for beter quality assurance of code

License GPL-V3: https://www.gnu.org/licenses/gpl-3.0.html

This is a developer helper mod, allow run any lua code for testing reason. The mod can list and run lua-scripts placed in checks subfolder. some check scrips provided. The second part is able to display global lua-tables tree

Features

  • redirection of print() output to minetest chat. (can be disabled by changing code line "print_to_chat")
  • robust call of the scripts trough "pcall" does not crash the game in case of syntax- or runtime errors
  • all functionality available trough chat commands and the QA-Block node
  • refresh and list the checks script list at runtime
  • edit the code before calling them
  • type code and run them
  • explore global variables/lua tables

Screenshot Screenshot

https://forum.minetest.net/viewtopic.php?f=11&t=15759

Dependencies

  • none
    • smartfs(provided) - GUI for check selection and manipulation. Optional, but without smartfs there is limited functionality

Provided check modules

  • empty - Empty file for your own checks
  • global_variables - List suspicious global variables
  • is_ground_content - This checker lists all nodes for which is_ground_content == true
  • light_source_15 - List all nodes for which light_source >= 15
  • list_entities - Lists all the registered entities (except builtin)
  • list_spawning_mobs - List entities that are mobs from mobs_redo or compatible framework
  • no_item_description - Lists all items without description
  • same_recipe - Find duplicate crafting recipes
  • unobtainable_items - Lists items which seem to be unobtainable
  • useless_items - Lists all items which are probably useless

How to use:

add the mod to the game you like to test

Using chat command /qa

  • /qa help - print available chat commands
  • /qa ls - list all available check modules
  • /qa set checkname - set default check
  • /qa ui - display and run check using the selection dialog. Browse trough globals (smartfs only)
  • /qa checkname - run check
  • /qa - run default check

Using the block

  1. get the QA-Block from creative inventory
  2. place the block somewhere 3a - without smartfs - wait till the default check is finished and the block disappears 3b - with smartfs - start the check using selection dialog

In all cases - check the debug.txt for test results

Credits

  • Wuzzy2 - thanks for ideas, code optimizations and the most check scripts