PF_Sandbox
PF_Sandbox copied to clipboard
Write tests
Gameplay should not be tested. (at least at this point)
A simple functional test could be:
- the game can be booted headless
cargo run --no-default-features -- -p2 - wait 10 seconds
- frame1 =
pf current_frame:get - wait 1 second
- frame2
pf current_frame:get - assert frame2 > frame1
Also the infrastructure such as package downloading/saving/reloading would definitely benefit from some unittests.