Releases: misode/packtest
Releases · misode/packtest
Release v1.9
- Updated to 1.21.2
Full Changelog: v1.8...v1.9
Release v1.8
- Renamed
tests
folder totest
- Add
-Dpacktest.generate.commands
option to generate a commands.json report - Fix error reporting when annotations are enabled and the error message contains
{}
- Prevent dummies from getting the "Bring Home the Beacon"
- Only run tests inside the world border when auto running by @aksiome in #7
Full Changelog: v1.7...v1.8
Release v1.7
- Updated to 1.20.5
- Added
/assert items
/assert predicate
now also allows inline predicates- Test structures are now encased with barrier blocks
- Added the
@skyaccess
directive to remove the barriers at the top
Full Changelog: v1.6...v1.7
Release v1.6
- Added line numbers to test failure messages
- Errors when loading resources now fails the auto test server
- Added an option to emit GitHub annotations with the auto test server using
-Dpacktest.auto.annotations
Full Changelog: v1.5...v1.6
Forceload fix v1.5
- Added
assert entity <selector> inside
command, which only matches entities inside the test structure bounds (inflated by 1 block) - Dummies are now automatically removed when a test succeeds, like other entities
- Fixed issue where forceloaded chunks would get removed after running tests (#2)
Full Changelog: v1.4...v1.5
Client compatibility fix v1.4
- Fixes an issue where modded clients without the mod could not connect to servers with the mod
- Fixes some placeholder values in the mod metadata
Full Changelog: v1.3...v1.4
Test server fix v1.3
- Fixes an issue causing the test server to fail
Full Changelog: v1.2...v1.3
Awaiting the update v1.2
- Added
/await
command, which works similar to/assert
but keeps testing the condition every tick - Removed
/succeed when
, instead use/await
- Added
/await delay
command to sleep for a specified time - Added
/assert chat
command to test for tellraw messages matching a regex pattern - Fixed issue with dummies loading data from disk from previous sessions
Full Changelog: v1.1...v1.2
Update for dummies v1.1
- Added dummies, which are simulated, fake players (#1)
- Added
/dummy
command - Added
@dummy
directive to spawn a dummy and set@s
to this dummy - Added
@beforebatch
and@afterbatch
directives to run commands
Full Changelog: v1.0...v1.1
The only release v1.0
- Tests in
data/<namespace>/tests/*.mcfunction
are loaded as gametests and can be run with/test
- Tests can be run in a CI environment with
-Dpacktest.auto
- Added
/succeed
and/fail <message>
commands - Added
/assert
command with automatic failure messages, check the docs! - Tests can be configured using directives like
@template
or@optional
to specify the structure file to load /succeed when ...
tries a condition every tick until it matches