-
Notifications
You must be signed in to change notification settings - Fork 568
[tests] Add AssertCommercialBuild() to incremental build tests #11421
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
Changes from all commits
2a824be
bf13258
f4944d9
9c1f6e1
46f4466
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -239,12 +239,14 @@ public void BuildAotApplicationWithNdkAndBundleAndÜmläüts (string supportedAb | |
| } | ||
| } | ||
| Assert.IsTrue (b.Build (proj), "Second Build should have succeeded."); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_CompileJava"), | ||
| "the _CompileJava target should be skipped"); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_BuildApkEmbed"), | ||
| "the _BuildApkEmbed target should be skipped"); | ||
| if (TestEnvironment.CommercialBuildAvailable) { | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_CompileJava"), | ||
| "the _CompileJava target should be skipped"); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_BuildApkEmbed"), | ||
|
Comment on lines
+242
to
+247
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is intentional. These tests primarily validate non-incremental functionality (AOT compilation, asset pack packaging, binding generation, resource processing, etc.). Only the incremental target-skipping assertions are secondary checks. Skipping the entire test with |
||
| "the _BuildApkEmbed target should be skipped"); | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
@@ -287,12 +289,14 @@ public void BuildAotApplicationAndÜmläüts (string supportedAbis, bool enableL | |
| } | ||
| } | ||
| Assert.IsTrue (b.Build (proj), "Second Build should have succeeded."); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_CompileJava"), | ||
| "the _CompileJava target should be skipped"); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_BuildApkEmbed"), | ||
| "the _BuildApkEmbed target should be skipped"); | ||
| if (TestEnvironment.CommercialBuildAvailable) { | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_CompileJava"), | ||
| "the _CompileJava target should be skipped"); | ||
| Assert.IsTrue ( | ||
| b.Output.IsTargetSkipped ("_BuildApkEmbed"), | ||
| "the _BuildApkEmbed target should be skipped"); | ||
| } | ||
| } | ||
| } | ||
|
|
||
|
|
||
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 is intentional. These tests primarily validate non-incremental functionality (AOT compilation, asset pack packaging, binding generation, resource processing, etc.). Only the incremental target-skipping assertions are secondary checks. Skipping the entire test with
AssertCommercialBuild()would lose coverage for the primary test functionality on public CI. Theif (TestEnvironment.CommercialBuildAvailable)pattern is already used elsewhere in the test suite (e.g.,InstallAndRunTests.cs).