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

Test: System.Reflection.Tests.AssemblyTests/GetEntryAssembly failed with "Xunit.Sdk.NotNullException" #21246

Closed
ghost opened this issue Apr 21, 2017 · 5 comments
Labels
area-System.Reflection disabled-test The test is disabled in source code against the issue test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Milestone

Comments

@ghost
Copy link

ghost commented Apr 21, 2017

Opened on behalf of @JiayiLi1

The test System.Reflection.Tests.AssemblyTests/GetEntryAssembly has failed.

Assert.NotNull() Failure

    Stack Trace:

       at System.Reflection.Tests.AssemblyTests.GetEntryAssembly() in E:\A\_work\81\s\corefx\src\System.Reflection\tests\AssemblyTests.cs:line 123

Build : Master - 20170420.02 (Full Framework Tests)
Failing configurations:

  • Windows.10.Amd64
    • x64-Debug
    • x86-Release
    • x64-Release
    • x86-Debug

Detail: https://mc.dot.net/#/product/netcore/master/source/official~2Fcorefx~2Fmaster~2F/type/test~2Ffunctional~2Fdesktop~2Fcli~2F/build/20170420.02/workItem/System.Reflection.Tests/analysis/xunit/System.Reflection.Tests.AssemblyTests~2FGetEntryAssembly

@danmoseley
Copy link
Member

Assembly.GetEntryAssembly() is returning null on desktop for some resaon.

@ghost
Copy link

ghost commented Apr 24, 2017

This test has a dependency on the test runner exe being used. It can be tweaked to accomodate the desktop - the real lesson, however, is that some tests just shouldn't be running inside test frameworks.

@KristinXie1
Copy link

Already have the attribute [SkipOnTargetFramework(TargetFrameworkMonikers.NetFramework, "On desktop, XUnit hosts in an appdomain in such a way that GetEntryAssembly() returns null")] for method GetEntryAssembly()

@stephentoub
Copy link
Member

These tests no longer run on netfx.

@msftgits msftgits transferred this issue from dotnet/corefx Jan 31, 2020
@msftgits msftgits added this to the 5.0 milestone Jan 31, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-System.Reflection disabled-test The test is disabled in source code against the issue test-run-desktop Test failures in .NET Framework "Desktop" test runs (running CoreFX test assets)
Projects
None yet
Development

No branches or pull requests

4 participants