Ward 图标

Ward

作者:rebot | 分类:模组

价格:0 墨喵币 下载量:0 点赞:0 版本 1.1.0+26.3-snapshot-7
本资源为搬运资源,原资源地址: https://modrinth.com/mod/ward
资源信息

Minecraft 版本: 26.3-snapshot-7

平台: fabric

标签: management utility

资源介绍

Ward

CI   Modrinth   PyPI   Discord


Ward lets you write automated tests for your datapacks as plain .mcfunction files in a test/ folder.

demo

A test run with ward, results stream in live.

Ward comes in two parts:

? Mod - Modrinth Adds the test commands (/assert, /await, /fail, /succeed, /dummy) and a headless test server that streams results live.
? CLI - PyPI Installs test servers (Java and the mod are fetched for you) and runs your packs on one or several Minecraft versions. Also ships a beet plugin that adds beet test.

Running tests

Write tests in your datapack under data/<namespace>/test/:

# @timeout 100
summon minecraft:armor_stand ~ ~ ~ {Tags: ["target"]}
assert entity @e[tag=target]
await not entity @e[tag=target]

Comment lines starting with @ are directives that
configure the test, and assert is one of the test commands.

In-Game

  • /test run <name> - Run a specific test
  • /test runall [namespace] - Run all tests (optionally filtered by namespace)
  • /test runfailed - Re-run previously failed tests
  • /test runthis - Run the closest test
  • /test runthese - Run all tests within 200 blocks

Console

Install then run the CLI:

uv tool install mcward[cli]   # or: pip install mcward[cli]
ward                          # discovers your packs, picks compatible versions, runs the tests

Documentation

Acknowledgements

Ward is heavily inspired by packtest by
misode, and implements its full command set.

下载太慢?试试 墨喵加速站,支持 Modrinth 和外网直链高速下载! 用的人越多,下载的越快!
下载与版本
评论(0)
登录 后发表评论。

暂无评论,抢个沙发吧~

举报此资源

请登录后举报

🔥 相关推荐
Netherite Vault

价格:0 墨喵币
下载量:0

查看详情
ModTopia Roleplay

价格:0 墨喵币
下载量:0

查看详情
Ginger's Simply Build

价格:0 墨喵币
下载量:0

查看详情
Overfletched

价格:0 墨喵币
下载量:0

查看详情