Unit Testing

This page displays the latest unit test results for the Godot Stat Math library. The test report is automatically generated by GDUnit4 and shows comprehensive test coverage and results.

📊 Open test report in new window

Test Coverage

The test suite covers all core modules of the StatMath library:

  • Basic Statistics: Mean, median, mode, variance, standard deviation, and quantile functions

  • Distributions: Random number generation for 20+ probability distributions

  • CDF Functions: Cumulative distribution functions for all supported distributions

  • PPF Functions: Percent point functions (quantiles) for distributions

  • PMF/PDF Functions: Probability mass/density functions

  • Error Functions: Mathematical error and gamma functions

  • Helper Functions: Utility functions for array processing and validation

  • Sampling Generation: Advanced sampling methods (Sobol, Halton, Latin Hypercube)

Test Results Overview

The test report above shows:

  • Test Suites: Number of test classes executed

  • Tests: Total number of individual test methods

  • Success Rate: Percentage of tests that passed

  • Duration: Total execution time for all tests

  • Status Details: Pass/fail status for each test suite

Understanding Test Status

🟢 Passed: Test executed successfully and met all assertions

🔴 Failed: Test failed one or more assertions

🟡 Skipped: Test was intentionally skipped (not executed)

Flaky: Test showed inconsistent results across runs

All tests are designed to validate both correctness and edge cases to ensure the StatMath library performs reliably in game development scenarios.