Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write tests #29

Open
rukai opened this issue Jul 26, 2017 · 0 comments
Open

Write tests #29

rukai opened this issue Jul 26, 2017 · 0 comments

Comments

@rukai
Copy link
Owner

rukai commented Jul 26, 2017

Gameplay should not be tested. (at least at this point)

A simple functional test could be:

  1. the game can be booted headless cargo run --no-default-features -- -p2
  2. wait 10 seconds
  3. frame1 = pf current_frame:get
  4. wait 1 second
  5. frame2 pf current_frame:get
  6. assert frame2 > frame1

Also the infrastructure such as package downloading/saving/reloading would definitely benefit from some unittests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant