Commit Graph

79 Commits

Author SHA1 Message Date
Doug Bunting 415875625c
[release/5.0] Update API baseline files (#27653)
* Move all PublicAPI.Unshipped.txt files to PublicAPI.Shipped.txt
- we have now shipped this API surface

* Add eng/PublicAPI.empty.txt file
- make it easier to add new implementation projects

* Add missing public API baseline files
- #26784 part 1/2
- a few unexpected files turned up missing beyond the #26784 list…

* Reference Microsoft.CodeAnalysis.PublicApiAnalyzers more often
- #27484 part 2/2
- emit errors when API baseline files are missing
- update categorization of some projects
  - specification tests are not implementation projects
    - but _were_ project reference providers (keep that)
  - correct `$(IsTestAssetProject)` setting for Razor shims et cetera
  - correct `$(IsSampleProject)` setting for casing of some Sample directories
  - Microsoft.AspNetCore.Analyzer.Testing should be treated as test asset
- add `$(AddPublicApiAnalyzers)` property to support overrides
  - e.g. for `msbuild` task projects and tools

nit:
- remove useless `$(IsTestProject)` setting in a specification test project
- wrap some long `Condition`s

* Do not run public API analyzer in `RazorCoreCompile` target

* Remove old `$(EnableApiCheck)` settings
- property does nothing
- also remove a dangling ApiCheck comment
2020-11-12 10:28:52 -08:00
Eric StJohn 4d47720df2
Ensure AppLocalResolver handles package with multiple libs (#27751)
* Ensure AppLocalResolver handles package with multiple libs

This was failing to pass references to a package which contains more
than one lib.

* Use `AppBaseCompilationAssemblyResolver` in `DiagnosticProject`

* Fix, then reduce use of `TestPathUtilities.GetSolutionRootDirectory(...)` (#27404)

- do not traverse up past the `$(RepoRoot)` when running tests locally
  - if `$(RepoRoot)` is reached, search down for named `*.slnf` file
  - find `*.slnf` file when `$(OutputPath)` is under artifacts/bin/
- analyzer test projects publish needed files anyhow
  - remove `GetProjectDirectory()` helpers

Co-authored-by: Doug Bunting <6431421+dougbu@users.noreply.github.com>
2020-11-12 10:09:40 -08:00
Kevin Pilch 848f42df8e
Add public API baselines for SiteExtensions, Testing, WebEncoders (#25654) 2020-09-10 11:45:01 -07:00
William Godbe ce058f639c
Add net461 TFM to netstandard2.0 projects (#25094)
* Add net461 TFM to netstandard2.0 projects

* Fix a couple of errors

* Fix some errors

* Get rid of Sockets reference

* Respond to feedback

* net461 -> property

* Fixup clientSample

* Remove net461 from analyzers/razor

* Remove net461 from test projects

* Feedback

* Add net461 test configs

* Remove some incompatible test configs

* Fix test
2020-08-27 16:05:40 -07:00
Kevin Pilch 3117f43c33
Migrate to single sln file + slnf files (#23581) 2020-07-08 15:27:22 -07:00
John Luo b40b1bb7b2
Fix helix-matrix tests (#22918)
* Update SslProtocols to use system defaults
2020-06-16 13:37:49 -07:00
Justin Kotalik 41eb22a0ac
Unquarantine tests (#21895)
* Unquarantine tests

* Update ShutdownTests.cs

* Update ShutdownTests.cs

* Update HubConnectionHandlerTests.cs

* Update src/SignalR/server/SignalR/test/HubConnectionHandlerTests.cs

Co-authored-by: Brennan <brecon@microsoft.com>

* Update HubConnectionTests.cs

Co-authored-by: Sébastien Ros <sebastienros@gmail.com>
Co-authored-by: Brennan <brecon@microsoft.com>
2020-05-18 19:04:48 +00:00
John Luo fcb23108b6 Relocate Logging.Testing to AspNetCore.Testing 2020-04-02 00:16:01 -07:00
John Luo aebb921320
Re-enable AssemblyTestLogTests (#19686) 2020-03-08 22:19:55 -07:00
John Luo 54b506e572 Skip some tests on Helix 2020-03-07 17:45:10 -08:00
John Luo ce636c5afb Update 2020-03-07 14:20:32 -08:00
John Luo d2b67cad82 Feedback 2020-03-06 12:42:42 -08:00
John Luo f05e019271
Merge branch 'master' into johluo/migrate-logging-testing 2020-03-04 22:17:06 -08:00
John Luo c181547864 Migration fixup for Logging.Testing 2020-03-04 22:10:12 -08:00
John Luo 6baba15cdc Merge branch 'master' of ..\extensions2\ into johluo/migrate-logging-testing 2020-03-04 17:46:27 -08:00
Brennan 56fb4b4d2f
Rename Flaky attribute (#19469) 2020-03-04 08:10:18 -08:00
Sam Harwell e3b0fdf81c Switch file headers to the MIT license 2020-02-26 11:05:13 -08:00
Sam Harwell 6cb7b318ef Normalize all file headers to the expected Apache 2.0 license 2020-02-26 11:05:12 -08:00
John Luo 7d1f5d8c0b Updates for extensions migrations
- Multi-target ObjectPool
- Move Embedded.Manifest.Task.Internal.Entry to the public namespace
- Remove ref assemblies from AspNetCore.Testing
- Skip TestPathUtilitiesTest since it's a pattern we want to migrate away from
- Fix FileProviders.Abstractions version in Embedded.*.nuspec
- Add workarounds for project references to FileProviders.Embedded
2020-02-20 14:00:29 -08:00
John Luo 100ddd7bfb Regen ref assemblies
\n\nCommit migrated from b6e88cca0d
2020-01-22 19:41:29 -08:00
John Luo 364f380112 Merge branch 'release/3.1'
\n\nCommit migrated from b4d6308053
2020-01-22 19:28:42 -08:00
William Godbe 45c582fff5 Revert "Remove ref project from Microsoft.AspNetCore.Testing (dotnet/extensions#2817)" (dotnet/extensions#2882)
This reverts commit dotnet/extensions@b624d6ba91b9c292ff9a2aa786a575b0eaa31b4b.\n\nCommit migrated from 1286a6ff55
2020-01-17 19:24:54 -08:00
Ryan Nowak 1ffc38851b Merge branch 'merge/release/3.1-to-master' of https://github.com/dotnet-maestro-bot/Common into dotnet-maestro-bot-merge/release/3.1-to-master
\n\nCommit migrated from 3873a0726e
2020-01-16 12:10:17 -08:00
John Luo 9eed4375d1 Remove ref project from Microsoft.AspNetCore.Testing (dotnet/extensions#2817)
\n\nCommit migrated from b624d6ba91
2020-01-15 16:36:56 -08:00
Kevin Pilch 639de3f5f4 Update links for repository move/rename (dotnet/extensions#2840)
\n\nCommit migrated from 6b493684d9
2020-01-09 13:39:52 -08:00
John Luo b6e5fd8671 Preserve functional test logs on CI (#2819)
* Add option to preserve function test logs

* Upload test logs as artifacts

* Preserve binlogs

* Add target to ensure all functional test logs preserved
2020-01-06 11:40:44 -08:00
John Luo d65b7239a6 Preserve functional test logs on CI (dotnet/extensions#2819)
* Add option to preserve function test logs

* Upload test logs as artifacts

* Preserve binlogs

* Add target to ensure all functional test logs preserved
\n\nCommit migrated from 08aa4560e5
2020-01-06 11:40:44 -08:00
Doug Bunting af43fd8feb Merge pull request dotnet/extensions#2783 from dotnet-maestro-bot/merge/release/3.1-to-master
[automated] Merge branch 'release/3.1' => 'master'\n\nCommit migrated from 39e463f4d4
2019-12-13 08:23:37 -08:00
William Godbe bb08ec9c04 Set IsShipping=false for all TestingUtils projects (dotnet/extensions#2782)
\n\nCommit migrated from 0743e1c118
2019-12-12 13:43:49 -08:00
Chris Ross e467364175 Remove version checks from OSSkipCondition (dotnet/extensions#2755)
\n\nCommit migrated from 0aa6213e1c
2019-12-05 10:58:15 -08:00
Eddy Nakamura ee8715254d updating inline <code> to <c>
\n\nCommit migrated from e9515b0096
2019-12-05 08:07:00 -03:00
Chris Ross 73da7ca714 Fix MaxOsVersion on Ubuntu (dotnet/extensions#2738)
\n\nCommit migrated from e8491a2488
2019-12-02 14:21:43 -08:00
Chris Ross 4d04c24f5b Better MaxOsVersion tests, more WindowsVersions (dotnet/extensions#2728)
\n\nCommit migrated from ec155951d6
2019-11-27 22:10:34 -08:00
Chris Ross 6a1b155967 Adding MaximumOSVersionAttribute (dotnet/extensions#2715)
\n\nCommit migrated from 9f29643656
2019-11-25 21:23:57 -08:00
dotnet-maestro[bot] 29d2fd4576 [master] Update dependencies from dotnet/core-setup dotnet/arcade (dotnet/extensions#2559)
* Update dependencies from https://github.com/dotnet/arcade build 20191023.3

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19523.3
- Microsoft.DotNet.GenAPI - 5.0.0-beta.19523.3
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.19523.3

* Updated ref asssemblies

* Update dependencies from https://github.com/dotnet/core-setup build 20191024.4

- Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19524.4
- NETStandard.Library.Ref - 2.1.0-alpha1.19524.4
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19524.4

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19524.14 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/core-setup build 20191025.8

- Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19525.8
- NETStandard.Library.Ref - 2.1.0-alpha1.19525.8
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19525.8

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/core-setup build 20191026.2

- Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19526.2
- NETStandard.Library.Ref - 2.1.0-alpha1.19526.2
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19526.2

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/arcade build 20191027.3

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19527.3
- Microsoft.DotNet.GenAPI - 5.0.0-beta.19527.3
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.19527.3

* Update dependencies from https://github.com/dotnet/core-setup build 20191027.2

- Microsoft.NETCore.App.Ref - 5.0.0-alpha1.19527.2
- NETStandard.Library.Ref - 2.1.0-alpha1.19527.2
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha1.19527.2

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/core-setup build 20191028.5

- Microsoft.NETCore.App.Ref - 5.0.0-alpha.1.19528.5
- NETStandard.Library.Ref - 2.1.0-alpha.1.19528.5
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha.1.19528.5

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19525.3 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/core-setup build 20191030.10

- Microsoft.NETCore.App.Ref - 5.0.0-alpha.1.19530.10
- NETStandard.Library.Ref - 2.1.0-alpha.1.19530.10
- Microsoft.NETCore.App.Runtime.win-x64 - 5.0.0-alpha.1.19530.10

Dependency coherency updates

- Microsoft.Win32.Registry - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ComponentModel.Annotations - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.DiagnosticSource - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Diagnostics.EventLog - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.IO.Pipelines - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Reflection.Metadata - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Runtime.CompilerServices.Unsafe - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Cng - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Security.Cryptography.Xml - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.ServiceProcess.ServiceController - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Encodings.Web - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- System.Text.Json - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)
- Microsoft.NETCore.Platforms - 5.0.0-alpha.1.19530.13 (parent: Microsoft.NETCore.App.Runtime.win-x64)

* Update dependencies from https://github.com/dotnet/arcade build 20191031.8

- Microsoft.DotNet.Arcade.Sdk - 5.0.0-beta.19531.8
- Microsoft.DotNet.GenAPI - 5.0.0-beta.19531.8
- Microsoft.DotNet.Helix.Sdk - 5.0.0-beta.19531.8
\n\nCommit migrated from fc2a7eadfe
2019-10-31 22:47:08 +00:00
Doug Bunting 7364cfcc56 Regen Microsoft.AspNetCore.Testing ref/ code
- account for xUnit refactoring in 'release/3.1'
\n\nCommit migrated from c6cacd7161
2019-10-13 21:15:18 -07:00
Doug Bunting f706def408 Merge branch 'release/3.1' into merge/release/3.0-to-release/3.1\n\nCommit migrated from 5bd76469dc 2019-10-12 21:57:07 -07:00
John Luo e6cc170447 Compile using ref assemblies (dotnet/extensions#2483)
* Compile using ref assemblies

* Use updated ResolveReferences.target from AspNetCore

* Generate ref assemblies for .NET framework\n\nCommit migrated from e771c4205f
2019-10-11 03:41:09 -07:00
Chris Ross aae216ade2 Unify OS version xunit attributes (dotnet/extensions#2481)
\n\nCommit migrated from 65e70f58df
2019-10-09 17:59:08 -07:00
Chris Ross f31f20e70a Add OSMinVersionAttribute (dotnet/extensions#2449)
\n\nCommit migrated from ddc00c0f2f
2019-10-03 21:03:01 -07:00
Ryan Nowak 221985c254 Refactor xUnit extensibility
Adds our own hook for before/after logic that's more usable, called
`ITestMethodLifecycle`. This provides access to a context object
including the information about the test and the output helper. This can
be implemented by attributes or by the class itself.

The goal (and result) of this, is that we have a single *test executor*
extensibility point that provides all of the features we need. We should
use this everywhere we need features xUnit doesn't have.

Adding a new extensibility point (`ITestMethodLifecycle`) allows us to
do this without turning all of these features into a giant monolith.

---

Also updated our existing extensibility to use this new hook.

I did as much cleanup as a could to remove duplication from logging and
keep it loosly coupled. I didn't want to tease this apart completely
because the scope of this PR is already pretty large.
2019-09-23 07:37:33 -07:00
Ryan Nowak ddde4faf4f Refactor xUnit extensibility
Adds our own hook for before/after logic that's more usable, called
`ITestMethodLifecycle`. This provides access to a context object
including the information about the test and the output helper. This can
be implemented by attributes or by the class itself.

The goal (and result) of this, is that we have a single *test executor*
extensibility point that provides all of the features we need. We should
use this everywhere we need features xUnit doesn't have.

Adding a new extensibility point (`ITestMethodLifecycle`) allows us to
do this without turning all of these features into a giant monolith.

---

Also updated our existing extensibility to use this new hook.

I did as much cleanup as a could to remove duplication from logging and
keep it loosly coupled. I didn't want to tease this apart completely
because the scope of this PR is already pretty large.
\n\nCommit migrated from 1b10284a47
2019-09-23 07:37:33 -07:00
Ryan Nowak aadc979baf Add AssemblyFixture to our test infra
This is a feature that we're using in Templates and Blazor E2E tests to manage selenium.

It's a general purpose kind of thing, so it makes sense to make it more general. This requires using the
`[assembly: TestFramework()]`.
Also fixed a bug here where this feature broke collection fixtures.
\n\nCommit migrated from 208d44a985
2019-09-23 07:37:33 -07:00
Ryan Nowak b1987c75cb Add a workaround for xUnit bug
We're currently experiencing a bug where conditional skips aren't working in VS.
This is caused by https://github.com/xunit/xunit/issues/1782
\n\nCommit migrated from cbe90b8492
2019-09-23 07:37:33 -07:00
Ryan Nowak ed97d344c5 Rename file to make class
\n\nCommit migrated from b6a290771f
2019-09-23 07:37:33 -07:00
John Luo fd2033e5d5 Support netcoreapp3.1 TFM (dotnet/extensions#2336)
* Support netcoreapp3.1 TFM

* Unpin SDK for source build

* Update to preview1 branding
\n\nCommit migrated from 32cc8162ff
2019-09-12 22:34:52 -07:00
Brennan 4643c8f350 Fix FlakyAttribute (dotnet/extensions#2245)
\n\nCommit migrated from 1983ee879c
2019-08-28 09:10:43 -07:00
Brennan 72dc1409d6 Fix ConditionalFact and ConditionalTheory (dotnet/extensions#2241)
\n\nCommit migrated from ae9d51ffeb
2019-08-27 19:41:44 -07:00
Justin Kotalik ce392fa4f7 Cleanup to skip/flaky attributes (#2186) 2019-08-15 09:12:53 -07:00
Justin Kotalik c717230b13 Cleanup to skip/flaky attributes (dotnet/extensions#2186)
\n\nCommit migrated from cfef5e07fb
2019-08-15 09:12:53 -07:00