Race Test Kit

The race-test crate provides a comprehensive test kit that simplifies the process of testing game logic built on Race Protocol. It offers various tools and utilities, including:

  • Test Clients: The test kit allows you to create test clients that simulate the behavior of players and servers. You can use these clients to send events, interact with the game state, and observe the resulting outcomes.

  • Test Game Account Builder: This utility helps you create mock game accounts with predefined configurations and initial states. This allows you to test your game logic under various conditions and scenarios.

  • Test Handler: This wrapper around your game handler provides additional functionality for testing, such as handling dispatched events and simulating the event loop.

By utilizing the tools and utilities provided by the race-test crate, developers can thoroughly test their game logic, ensuring its correctness, security, and fairness before deploying their game on the Race Protocol infrastructure.

Last updated