packtest
packtest copied to clipboard
Errors aren't correctly ordered
When executed tests report the last fail command and not the first one, for example :
setblock ~ ~5 ~ stone
await delay 2s
execute if block ~ ~5 ~ stone run fail "This should fail"
execute if block ~ ~5 ~ stone run fail "But this do fail instead"
Produce this output:
Datapack : test_dp.zip
The problem is not one of order. The issue is that the function does not terminate when fail is executed.
fail "This is a fail!"
say I should not run!
Actually, fail, assert, succeed and even return all fail to end the test early.