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

System.Composition.Tests Fails on Android #50919

Closed
mdh1418 opened this issue Apr 8, 2021 · 2 comments · Fixed by #56635
Closed

System.Composition.Tests Fails on Android #50919

mdh1418 opened this issue Apr 8, 2021 · 2 comments · Fixed by #56635

Comments

@mdh1418
Copy link
Member

mdh1418 commented Apr 8, 2021

System.Composition.Tests
System.Composition.UnitTests.DiscoveryTests.MultipleImportAttributesAreDetected
System.Composition.UnitTests.DiscoveryTests.PropertyExportsOfIncompatibleContractsAreDetected
System.Composition.UnitTests.DiscoveryTests.InstanceExportsOfIncompatibleContractsAreDetected
System.Composition.UnitTests.SharingTest.BoundaryExposedBoundaryButNoneImported
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.UnsupportedMetadataViewMessageIsInformative
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView
System.Composition.UnitTests.OpenGenericsTests.TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery
System.Composition.UnitTests.OpenGenericsTests.TypesWithNonGenericExportsAreDetectedDuringDiscovery
System.Composition.UnitTests.ContractTests.FormattingTheContractPrintsConstraintKeysAndValues
System.Composition.UnitTests.CardinalityTests.ImportingOneWhereMultipleArePresentFails
System.Composition.UnitTests.CardinalityTests.RequestingOneWhereMultipleArePresentFails
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelExportMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.MissingDependencyMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.CycleMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelNamedExportMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.CardinalityViolationMessageIsInformative

System.Composition.Tests.dll   Failed: 16

Test collection for System.Composition.UnitTests.DiscoveryTests
System.Composition.UnitTests.DiscoveryTests.MultipleImportAttributesAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Multiple imports have been configured for···\nActual:   ContractHelpers_TooManyImports, MultiImpo···\n          ↑ (pos 0)
System.Composition.UnitTests.DiscoveryTests.PropertyExportsOfIncompatibleContractsAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract type 'IRule' is not ass···\nActual:   TypeInspector_ExportedContractTypeNotAssi···\n          ↑ (pos 0)
System.Composition.UnitTests.DiscoveryTests.InstanceExportsOfIncompatibleContractsAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract type 'IRule' is not ass···\nActual:   TypeInspector_ContractNotAssignable, IRul···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.SharingTest
System.Composition.UnitTests.SharingTest.BoundaryExposedBoundaryButNoneImported
    Assert.Contains() Failure\nNot found: The component (unknown) cannot be created outside the Boundary sharing boundary\nIn value:  Component_NotCreatableOutsideSharingBoundary, Boundary

Test collection for System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.UnsupportedMetadataViewMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: The type 'INamed' cannot be used as a met···\nActual:   MetadataViewProvider_InvalidViewImplement···\n          ↑ (pos 0)
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: The type 'InvalidConcreteView' cannot be ···\nActual:   MetadataViewProvider_InvalidViewImplement···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.OpenGenericsTests
System.Composition.UnitTests.OpenGenericsTests.TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract 'IRepository`1' of open···\nActual:   TypeInspector_ArgumentMissmatch, IReposit···\n          ↑ (pos 0)
System.Composition.UnitTests.OpenGenericsTests.TypesWithNonGenericExportsAreDetectedDuringDiscovery
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Open generic part 'RepositoryWithNonGener···\nActual:   TypeInspector_NoExportNonGenericContract,···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.ContractTests
System.Composition.UnitTests.ContractTests.FormattingTheContractPrintsConstraintKeysAndValues
    Assert.Equal() Failure\n                       ↓ (pos 13)\nExpected: AType { A = 1, B = \"C\" }\nActual:   AType { A = 1Formatter_ListSeparatorWithSpaceB = \"C\" }\n                       ↑ (pos 13)

Test collection for System.Composition.UnitTests.CardinalityTests
System.Composition.UnitTests.CardinalityTests.ImportingOneWhereMultipleArePresentFails
    Assert.Contains() Failure\nNot found: LogA\nIn value:  Dependency_TooManyExports\nExportDescriptor_DependencyErrorLine\nExportDescriptor_DependencyErrorContract
System.Composition.UnitTests.CardinalityTests.RequestingOneWhereMultipleArePresentFails
    Assert.Contains() Failure\nNot found: LogA\nIn value:  Dependency_TooManyExports\n

Test collection for System.Composition.UnitTests.ErrorMessageQualityTests
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelExportMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   CompositionContext_NoExportFoundForContra···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.MissingDependencyMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   Dependency_ExportNotFound\\nExportDescripto···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.CycleMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Detected an unsupported cycle for part 'C···\nActual:   ExportDescriptor_UnsupportedCycle\\nExportD···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelNamedExportMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   CompositionContext_NoExportFoundForContra···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.CardinalityViolationMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Only one export for the contract 'ShouldB···\nActual:   Dependency_TooManyExports\\nExportDescripto···\n          ↑ (pos 0)
@mdh1418 mdh1418 added this to the 6.0.0 milestone Apr 8, 2021
@dotnet-issue-labeler dotnet-issue-labeler bot added area-System.Composition untriaged New issue has not been triaged by the area owner labels Apr 8, 2021
@ghost
Copy link

ghost commented Apr 8, 2021

Tagging subscribers to this area: @ViktorHofer
See info in area-owners.md if you want to be subscribed.

Issue Details

System.Composition.Tests
System.Composition.UnitTests.DiscoveryTests.MultipleImportAttributesAreDetected
System.Composition.UnitTests.DiscoveryTests.PropertyExportsOfIncompatibleContractsAreDetected
System.Composition.UnitTests.DiscoveryTests.InstanceExportsOfIncompatibleContractsAreDetected
System.Composition.UnitTests.SharingTest.BoundaryExposedBoundaryButNoneImported
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.UnsupportedMetadataViewMessageIsInformative
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView
System.Composition.UnitTests.OpenGenericsTests.TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery
System.Composition.UnitTests.OpenGenericsTests.TypesWithNonGenericExportsAreDetectedDuringDiscovery
System.Composition.UnitTests.ContractTests.FormattingTheContractPrintsConstraintKeysAndValues
System.Composition.UnitTests.CardinalityTests.ImportingOneWhereMultipleArePresentFails
System.Composition.UnitTests.CardinalityTests.RequestingOneWhereMultipleArePresentFails
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelExportMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.MissingDependencyMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.CycleMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelNamedExportMessageIsInformative
System.Composition.UnitTests.ErrorMessageQualityTests.CardinalityViolationMessageIsInformative

System.Composition.Tests.dll   Failed: 16

Test collection for System.Composition.UnitTests.DiscoveryTests
System.Composition.UnitTests.DiscoveryTests.MultipleImportAttributesAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Multiple imports have been configured for···\nActual:   ContractHelpers_TooManyImports, MultiImpo···\n          ↑ (pos 0)
System.Composition.UnitTests.DiscoveryTests.PropertyExportsOfIncompatibleContractsAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract type 'IRule' is not ass···\nActual:   TypeInspector_ExportedContractTypeNotAssi···\n          ↑ (pos 0)
System.Composition.UnitTests.DiscoveryTests.InstanceExportsOfIncompatibleContractsAreDetected
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract type 'IRule' is not ass···\nActual:   TypeInspector_ContractNotAssignable, IRul···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.SharingTest
System.Composition.UnitTests.SharingTest.BoundaryExposedBoundaryButNoneImported
    Assert.Contains() Failure\nNot found: The component (unknown) cannot be created outside the Boundary sharing boundary\nIn value:  Component_NotCreatableOutsideSharingBoundary, Boundary

Test collection for System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.UnsupportedMetadataViewMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: The type 'INamed' cannot be used as a met···\nActual:   MetadataViewProvider_InvalidViewImplement···\n          ↑ (pos 0)
System.Composition.Lightweight.UnitTests.MetadataViewGenerationTests.AConcreteTypeWithUnsupportedConstructorsCannotBeUsedAsAMetadataView
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: The type 'InvalidConcreteView' cannot be ···\nActual:   MetadataViewProvider_InvalidViewImplement···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.OpenGenericsTests
System.Composition.UnitTests.OpenGenericsTests.TypesWithMismatchedGenericParameterListsAreDetectedDuringDiscovery
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Exported contract 'IRepository`1' of open···\nActual:   TypeInspector_ArgumentMissmatch, IReposit···\n          ↑ (pos 0)
System.Composition.UnitTests.OpenGenericsTests.TypesWithNonGenericExportsAreDetectedDuringDiscovery
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Open generic part 'RepositoryWithNonGener···\nActual:   TypeInspector_NoExportNonGenericContract,···\n          ↑ (pos 0)

Test collection for System.Composition.UnitTests.ContractTests
System.Composition.UnitTests.ContractTests.FormattingTheContractPrintsConstraintKeysAndValues
    Assert.Equal() Failure\n                       ↓ (pos 13)\nExpected: AType { A = 1, B = \"C\" }\nActual:   AType { A = 1Formatter_ListSeparatorWithSpaceB = \"C\" }\n                       ↑ (pos 13)

Test collection for System.Composition.UnitTests.CardinalityTests
System.Composition.UnitTests.CardinalityTests.ImportingOneWhereMultipleArePresentFails
    Assert.Contains() Failure\nNot found: LogA\nIn value:  Dependency_TooManyExports\nExportDescriptor_DependencyErrorLine\nExportDescriptor_DependencyErrorContract
System.Composition.UnitTests.CardinalityTests.RequestingOneWhereMultipleArePresentFails
    Assert.Contains() Failure\nNot found: LogA\nIn value:  Dependency_TooManyExports\n

Test collection for System.Composition.UnitTests.ErrorMessageQualityTests
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelExportMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   CompositionContext_NoExportFoundForContra···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.MissingDependencyMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   Dependency_ExportNotFound\\nExportDescripto···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.CycleMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Detected an unsupported cycle for part 'C···\nActual:   ExportDescriptor_UnsupportedCycle\\nExportD···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.MissingTopLevelNamedExportMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: No export was found for the contract 'Unr···\nActual:   CompositionContext_NoExportFoundForContra···\n          ↑ (pos 0)
System.Composition.UnitTests.ErrorMessageQualityTests.CardinalityViolationMessageIsInformative
    Assert.Equal() Failure\n          ↓ (pos 0)\nExpected: Only one export for the contract 'ShouldB···\nActual:   Dependency_TooManyExports\\nExportDescripto···\n          ↑ (pos 0)


<table>
  <tr>
    <th align="left">Author:</th>
    <td>mdh1418</td>
  </tr>
  <tr>
    <th align="left">Assignees:</th>
    <td>-</td>
  </tr>
  <tr>
    <th align="left">Labels:</th>
    <td>

`area-System.Composition`, `os-android`, `untriaged`

</td>
  </tr>
  <tr>
    <th align="left">Milestone:</th>
    <td>6.0.0</td>
  </tr>
</table>
</details>

@buyaa-n buyaa-n removed the untriaged New issue has not been triaged by the area owner label Apr 12, 2021
@steveisok
Copy link
Member

@mdh1418 These tests pass on Android and can be re-enabled.

@steveisok steveisok modified the milestones: 6.0.0, 7.0.0 Jul 30, 2021
@ghost ghost added the in-pr There is an active PR which will close this issue when it is merged label Jul 30, 2021
steveisok pushed a commit that referenced this issue Jul 30, 2021
…ng improperly set (#56635)

Fixes #50576
Fixes #50881
Fixes #50916
Fixes #50917
Fixes #50918
Fixes #50919
Fixes #50927
Fixes #50928
Fixes #50944
Fixes #50945
Fixes #50946
Fixes #50947
Fixes #50948
Fixes #50999

When setting up functional tests for mobile, the feature switches being used for the tests were misplaced in a broader project, affecting the library tests and causing failures. After moving the feature switches to the scope of functional tests as done in #53253, these test suites no longer fail and can be re-enabled.
@ghost ghost removed the in-pr There is an active PR which will close this issue when it is merged label Jul 30, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Aug 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
No open projects
3 participants