Yves-Marie Haussonne 8f77cd456c feat(colors): add color management for console output
Add color management functionality sourced from 'lua-chroma' library, introducing various color escape sequences for enhanced console output formatting. Implemented a `pprint` function for formatted printing with color support, enabling structured and visually enhanced display in the console for tests and results.

This commit enhances readability and visual differentiation in test summary displays through color-coded outputs, highlighting test status and errors effectively.
2024-10-04 01:29:54 +02:00
2024-10-03 16:53:19 +02:00
2024-10-02 23:34:00 +00:00

Docker Test Harness for Minetest Mods

Overview

This mod provides an automated testing framework for Minetest mods by simulating player behavior on a Minetest server. It allows developers to create, register, and run tests to ensure the correct behavior of their mods in various scenarios.

Features

  • Test Registration: Easily register custom tests for your mod.
  • Player Behavior Simulation: Simulate player actions for automatic testing.
  • Modular Structure: Each test is associated with a specific mod and can be customized.
  • Area and Node Manipulation: Test areas can be defined, and node checks can be performed.
  • Test Context and State Management: Manage and track the progress of tests across multiple mods.

Installation

  1. Clone or download the docker-test-harness mod.
  2. Place the test_harness directory into the mods folder of your Minetest world.
  3. Add the following setting in minetest.conf to enable automatic test execution:
    test_harness_run_tests = true
    

License

Licensed under the AGPL (Affero General Public License).

Funding

This mod is published with funding from the NLNet Foundation.

Description
No description provided
Readme 97 KiB
Languages
Lua 61.1%
Dockerfile 20.1%
Shell 18.8%