Skip to content

Add unit/regression tests#17

Draft
minisbett wants to merge 21 commits intomasterfrom
unit-testing
Draft

Add unit/regression tests#17
minisbett wants to merge 21 commits intomasterfrom
unit-testing

Conversation

@minisbett
Copy link
Copy Markdown
Owner

@minisbett minisbett commented Mar 28, 2026

Adds unit tests covering all of osu-native.

The unit test interacts with osu-native by calling the high-level [OsuNativeFunction] methods, rather than using the FFI. This is deemed okay, as the concept of FFI should always reliably work, and the error-handling that differentiates the higher-level functions from the native ones is deterministic and tested as well.

Coverage:

  • RulesetTests
  • BeatmapTests
  • ModTests
  • ModsCollectionTests
  • OsuDifficultyCalculatorTests
  • TaikoDifficultyCalculatorTests
  • CatchDifficultyCalculatorTests
  • ManiaDifficultyCalculatorTests
  • OsuPerformanceCalculatorTests
  • TaikoPerformanceCalculatorTests
  • CatchPerformanceCalculatorTests
  • ManiaPerformanceCalculatorTests
  • ErrorHandlerTests
  • ManagedObjectStoreTests (including handles)

TODO:

  • Add xmldocs with more elaborate expectations to every test

@minisbett minisbett self-assigned this Mar 28, 2026
@minisbett minisbett added feature A new functionality. area:code-quality The quality of the code. labels Mar 28, 2026
@minisbett minisbett marked this pull request as draft March 29, 2026 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:code-quality The quality of the code. feature A new functionality.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant