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

Fix reference issues in iOS tests #30729

Merged
merged 2 commits into from
Nov 18, 2024
Merged

Fix reference issues in iOS tests #30729

merged 2 commits into from
Nov 18, 2024

Conversation

minisbett
Copy link
Contributor

@minisbett minisbett commented Nov 17, 2024

  1. osu.Game.Rulesets.Osu.Tests.iOS was missing references for Moq and DeepEqual
  2. osu.Game.Rulesets.Taiko.Tests.iOS was missing a reference to osu.Game.Tests, causing issues with trying to use osu.Game.Tests.Beatmaps.IO.BeatmapImportHelper

Both caused the tests to not compile.

<ProjectReference Include="..\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj" />
<ProjectReference Include="..\osu.Game.Tests\osu.Game.Tests.csproj" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes game tests to show up when running iOS taiko test browser, but it doesn't seem to be easily solvable so I'll just let it be for now, it's not offensive enough for me to care.

Copy link
Contributor Author

@minisbett minisbett Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The other rulesets already do this (or at least standard does, the others might use the BeatmapImportHelper too), I copied this reference from another ruleset's csproj file.

A more ideal solution might be a project containing commons for all tests.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see any other test project referencing osu.Game.Tests. Usually whenever a test component is used by more than one test project, it is moved to osu.Game/Tests/... but let's just keep things as they are for now.

Copy link
Contributor Author

@minisbett minisbett Nov 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My bad, standard does not have it. This is where I copied it from:

<ProjectReference Include="..\osu.Game.Tests\osu.Game.Tests.csproj" />

Therefore I assume the usage of BeatmapImportHelper might be exclusive to the Taiko ruleset, and in Taikos' iOS tests it was missing while in the normal tests it wasn't.

@frenzibyte frenzibyte enabled auto-merge November 18, 2024 00:55
@frenzibyte frenzibyte merged commit 4b39ece into ppy:master Nov 18, 2024
9 checks passed
@minisbett minisbett deleted the fix-tests branch November 18, 2024 22:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants