-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Conversation
<ProjectReference Include="..\osu.Game.Rulesets.Taiko\osu.Game.Rulesets.Taiko.csproj" /> | ||
<ProjectReference Include="..\osu.Game.Tests\osu.Game.Tests.csproj" /> |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
osu.Game.Rulesets.Osu.Tests.iOS
was missing references forMoq
andDeepEqual
osu.Game.Rulesets.Taiko.Tests.iOS
was missing a reference toosu.Game.Tests
, causing issues with trying to useosu.Game.Tests.Beatmaps.IO.BeatmapImportHelper
Both caused the tests to not compile.