Skip to content
This repository was archived by the owner on Nov 9, 2018. It is now read-only.

.NET 4.5.1 test runs fail with "EXEC : warning : No test is available" #248

Closed
dougbu opened this issue Feb 13, 2017 · 5 comments
Closed
Assignees

Comments

@dougbu
Copy link
Contributor

dougbu commented Feb 13, 2017

Since xUnit published RC1 bits, many .NET 4.5.1 test runs have started to fail with the above error. Such runs do not execute any tests. This reduces our test coverage across the repos. For example, MVC has dropped from running 6968 tests to just 3638,

Moving our xUnit dependencies back to 2.2.0-beta5-build3474 seems to work in the Performance repo. But, that's not the right fix. Should instead adjust EntityFramework, Performance , and Testing to whatever has changed in xUnit. Start with Testing because other repos use its xUnit extensions.

@dougbu dougbu self-assigned this Feb 13, 2017
@dougbu
Copy link
Contributor Author

dougbu commented Feb 13, 2017

Self-assigning

@dougbu
Copy link
Contributor Author

dougbu commented Feb 13, 2017

Not 💯% sure but it appears xUnit has dropped .NET 4.5.1 support. Filed xunit/xunit#1102 in hopes this was unintended.

@clairernovotny
Copy link

.NET 4.5.1 is obsolete and unsupported by Microsoft. .NET 4.5.2 is the minimum version with support. Your unit tests need to be for .NET 4.5.2 but they can still reference .NET 4.5 libraries (as per normal referencing rules).

@dougbu
Copy link
Contributor Author

dougbu commented Feb 13, 2017

Time to update all test projects to executing using .NET 4.5.2 instead of 4.5.1. Because it's not clear whether anything else will need to change, follow the checklist below:

  • BuildTools
  • Microsoft.Data.Sqlite
  • PlatformAbstractions
  • Common
  • Testing
  • JsonPatch
  • FileSystem
  • DependencyInjection
  • Configuration
  • EventNotification
  • Options
  • Logging
  • DotNetTools
  • HtmlAbstractions
  • HttpAbstractions
  • Caching
  • Razor
  • Hosting
  • DataProtection
  • EntityFramework (thanx @bricelam!)
  • HttpSysServer
  • KestrelHttpServer
  • BrowserLink
  • EntityFramework.Tools
  • Antiforgery
  • BasicMiddleware
  • Scaffolding
  • IISIntegration
  • AzureIntegration
  • ServerTests
  • ResponseCaching
  • Session
  • CORS
  • Routing
  • StaticFiles
  • Proxy
  • Diagnostics
  • Security
  • Localization
  • WebSockets
  • Mvc
  • MetaPackages
  • MvcPrecompilation
  • Identity
  • SignalR
  • Entropy
  • MusicStore
  • RazorTooling (no longer in use)
  • Setup (if this is still in use)
  • benchmarks
  • Performance

@natemcmaster
Copy link
Contributor

I've been meaning to make the following change anyways...as long as you are updating all test projects, can we make this change too?

Any project that targets:

<TargetFrameworks>netcoreapp1.1;net4XY</TargetFrameworks>

should change to

<TargetFrameworks>netcoreapp1.1;net4XY</TargetFrameworks>
<TargetFrameworks Condition="'$(OS)'  != 'Windows_NT'">netcoreapp1.1</TargetFrameworks>

This will mean only .NET Core compiles and tests on Linux. cref aspnet/KoreBuild#160

dougbu added a commit to aspnet/Microsoft.Data.Sqlite that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit to dotnet/extensions that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit that referenced this issue Feb 13, 2017
- #248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit to aspnet/JsonPatch that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit to aspnet/FileSystem that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/FileSystem that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/DependencyInjection that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to dotnet/extensions that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit that referenced this issue Feb 13, 2017
- #248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/JsonPatch that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Configuration that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
  - except Microsoft.Extensions.Configuration.AzureKeyVault.Test project; that will be handled differently
dougbu added a commit to aspnet/EventNotification that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Options that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Options that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows

Also fix line endings in one src project. Otherwise unable to update repo.
dougbu added a commit to aspnet/Microsoft.Data.Sqlite that referenced this issue Feb 13, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Diagnostics that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Security that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
  - except Microsoft.Owin.Security.Interop.Test; will need to skip that for non-Windows some other way
dougbu added a commit to aspnet/Diagnostics that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows

Address existing issues
- work around test failures, including #350
  - skip tests mentioned in #350
  - reorder xunit and xunit.runner.visualstudio; setup fails for .NET Core otherwise
- skip all tests using LocalDB on Linux and OSX
  - `[FrameworkSkipCondition(RuntimeFrameworks.Mono)]` now redundant
- correct AppVeyor image

nits:
- let VS add the test `<Service>`
- use `[ConditionalFact]` when there's no test data
dougbu added a commit to aspnet/Security that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- target .NET 4.6.1 in Microsoft.Owin.Security.Interop.Test; avoids .NET 4.5.2 System.Xml casing issue
- build tests for desktop .NET only on Windows
  - except Microsoft.Owin.Security.Interop.Test; already skipped using repo.props
dougbu added a commit to aspnet/Localization that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Identity that referenced this issue Feb 16, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Entropy that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/MusicStore that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit to aspnet/MusicStore that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Security that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- target .NET 4.6.1 in Microsoft.Owin.Security.Interop.Test; avoids .NET 4.5.2 System.Xml casing issue
- build tests for desktop .NET only on Windows
  - except Microsoft.Owin.Security.Interop.Test; already skipped using repo.props
- enable binding redirects for one test project
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
  - skipping 4.5.2 to avoid that version's odd System.XML casing and related Linux failures
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
  - skipping 4.5.2 to avoid that version's odd System.XML casing and related Linux failures
- update AppVeyor config so this framework version is available
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Localization that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 17, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- update AppVeyor config so this framework version is available
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 18, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- update AppVeyor config so this framework version is available
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 21, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- update AppVeyor config so this framework version is available
- build tests for desktop .NET only on Windows
dougbu added a commit to aspnet/Mvc that referenced this issue Feb 21, 2017
- aspnet/Testing#248
- xUnit no longer supports .NET 4.5.1
- update AppVeyor config so this framework version is available
- build tests for desktop .NET only on Windows
@dougbu dougbu closed this as completed Feb 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants