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

[XHarness] Add support for xunit and nunit tests on Mac OS X. #5182

Merged
merged 33 commits into from
Dec 12, 2018

Conversation

mandel-macaque
Copy link
Member

@mandel-macaque mandel-macaque commented Nov 27, 2018

This branch adds support to execute the tests provided by mono as assemblies. The PR includes:

  1. App generation to run the bcl tests on modern and full.
  2. Needed workaround to delay the compilation of the assemblies until we have them from the SDK.
  3. Some test fail. THIS IS ON PURPOSE. I want to show that we do catch errors.

@mandel-macaque mandel-macaque added the run-bcl-tests Run the BCL tests label Nov 27, 2018
@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

tests/bcl-test/BCLTests/BCLTests-mac.csproj.in Outdated Show resolved Hide resolved
tests/bcl-test/BCLTests/Info-mac.plist.in Outdated Show resolved Hide resolved
tests/bcl-test/BCLTests/templates/macOS/MacTestMain.cs Outdated Show resolved Hide resolved
1. Addresses the reviews from rolf.
2. Ensure that the dependencies are ran on mac test projects.
3. Group the tests for ios and mac using their name.
@mandel-macaque
Copy link
Member Author

@spouliot @rolfbjarne the tests should build and some of them fail (I want to see that we do report errors correctly). Once that is done, I'll exclude the failing ones as we did with ios/tvos/watchos.

Copy link
Contributor

@spouliot spouliot left a comment

Choose a reason for hiding this comment

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

Why the renames from MONOTOUCH* to monotouch* ? it's rather noisy and not related to XM support. Also, and more important, how the name format for the mono SDK .zip file ?

@mandel-macaque
Copy link
Member Author

@spouliot the rename was done precisely due to that. I was told by @luhenry that should not be upper case, as far as I can remember.

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

# Test run in progress: Built: 177, Running: 1, RunQueued: 40, Succeeded: 80, Failed: 15, Ignored: 1570, BuildFailure: 12

Failed tests

  • [NUnit] Mono MonoCSharpTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono MonoDataSqilteTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono MonoPoxisTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemConfigurationTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemCoreTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemDataTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemIOCompressionFileSystemTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemIOCompressionTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemIdentityModelTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemSecurityTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemServiceModelTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemTransactionsTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemXmlTests/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemTests/Mac/Full: Failed (Test run crashed (exit code: 255).)
  • [xUnit] Mono SystemCoreXunit/Mac/Full: Failed (Test run failed.)
  • [NUnit] Mono SystemJsonMicrosoftTests/iOS Unified 32-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoParallelTests/iOS Unified 32-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoTaskletsTests/iOS Unified 32-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono SystemThreadingTasksDataflowTests/iOS Unified 32-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono SystemJsonMicrosoftTests/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoParallelTests/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoTaskletsTests/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono SystemThreadingTasksDataflowTests/iOS Unified 64-bits - simulator/Debug: BuildFailure
  • [NUnit] Mono SystemJsonMicrosoftTests/watchOS - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoParallelTests/watchOS - simulator/Debug: BuildFailure
  • [NUnit] Mono MonoTaskletsTests/watchOS - simulator/Debug: BuildFailure
  • [NUnit] Mono SystemThreadingTasksDataflowTests/watchOS - simulator/Debug: BuildFailure

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)

@mandel-macaque
Copy link
Member Author

mandel-macaque commented Nov 30, 2018

Do not merge until #4596 is done.

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

@rolfbjarne
Copy link
Member

build

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

# Test run in progress: Built: 137, Succeeded: 142, Ignored: 1570, TimedOut: 10

Failed tests

  • mscorlib/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Core/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Data/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Net.Http/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Numerics/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Runtime.Serialization/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Transactions/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Web.Services/iOS Unified 32-bits - simulator/Debug: TimedOut
  • System.Xml/iOS Unified 32-bits - simulator/Debug: TimedOut

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

8 tests failed, 0 tests skipped, 281 tests passed.

Failed tests

  • [xUnit] Mono SystemJsonXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [NUnit] Mono SystemNumericsTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemXmlLinqTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemJsonTests/watchOS - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/watchOS - simulator/Debug: Crashed

@mandel-macaque mandel-macaque removed the do-not-merge Do not merge this pull request label Dec 7, 2018
@mandel-macaque
Copy link
Member Author

Mono 2018-08 got merged, if tests are ok, we should be able to merge this. Any comments against it @rolfbjarne @spouliot ?

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

🔥 Build failed 🔥

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

🔥 Build failed 🔥

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

10 tests failed, 0 tests skipped, 279 tests passed.

Failed tests

  • [xUnit] Mono SystemSecurityXunit/Mac/Full: Failed (Test run failed.)
  • [xUnit] Mono SystemSecurityXunit/Mac/Modern: Failed (Test run failed.)
  • [xUnit] Mono SystemJsonXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [NUnit] Mono SystemNumericsTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemXmlLinqTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemJsonTests/watchOS - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/watchOS - simulator/Debug: Crashed

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)

@monojenkins
Copy link
Collaborator

Build failure
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
🔥 Test run failed 🔥

Test results

8 tests failed, 0 tests skipped, 279 tests passed.

Failed tests

  • [xUnit] Mono SystemJsonXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 32-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [xUnit] Mono SystemNumericsXunit/iOS Unified 64-bits - simulator/Debug: Crashed
  • [NUnit] Mono SystemNumericsTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemXmlLinqTests/watchOS - simulator/Debug: Crashed
  • [NUnit] Mono SystemJsonTests/watchOS - simulator/Debug: Crashed
  • [xUnit] Mono SystemJsonXunit/watchOS - simulator/Debug: Crashed

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

@monojenkins
Copy link
Collaborator

Build failure
Build was aborted

@monojenkins
Copy link
Collaborator

Build success
Build succeeded
API Diff (from stable)
ℹ️ API Diff (from PR only) (please review changes)
Generator Diff (no change)
Test run succeeded

@mandel-macaque
Copy link
Member Author

Previous abort was due to the bots getting stuck while building mono, weird. Merging as everything is green,

@mandel-macaque mandel-macaque merged commit ffae762 into xamarin:master Dec 12, 2018
@mandel-macaque mandel-macaque deleted the xunit-mac-support branch December 12, 2018 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-bcl-tests Run the BCL tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants