Commit Graph

48 Commits

Author SHA1 Message Date
Kevin Pilch 3117f43c33
Migrate to single sln file + slnf files (#23581) 2020-07-08 15:27:22 -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
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 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
Chris Ross e467364175 Remove version checks from OSSkipCondition (dotnet/extensions#2755)
\n\nCommit migrated from 0aa6213e1c
2019-12-05 10:58:15 -08: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
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
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 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
Andrew Stanton-Nurse 4c0a9d9a6b update version of SqlClient used by sql cache (dotnet/extensions#2006)
\n\nCommit migrated from b1ff0d9dc8
2019-07-16 14:42:37 -07:00
Nate McMaster 2dd8eb61ba Disable transitive project references in test projects (dotnet/extensions#1834)
\n\nCommit migrated from e7d5bea3bb
2019-06-13 16:27:19 -07:00
Nate McMaster 213076ff4b Obsolete TestPathUtilities (dotnet/extensions#1698)
\n\nCommit migrated from da5dee978f
2019-05-21 14:18:22 -07:00
Andrew Stanton-Nurse 188c45965a skip flaky attribute tests, they're just too annoying (dotnet/extensions#1476)
\n\nCommit migrated from 97bd314988
2019-04-19 10:19:59 -07:00
Justin Kotalik f57e591af3 Add Repeat attribute (#1375) 2019-04-09 14:03:12 -07:00
Andrew Stanton-Nurse 2d1743a2f6 clean up flaky filter constants (dotnet/extensions#1248)
\n\nCommit migrated from 3b3a23eb1a
2019-03-19 18:43:25 -07:00
Andrew Stanton-Nurse d9627c80ef add FlakyAttribute to mark flaky tests (dotnet/extensions#1222)
part of aspnet/AspNetCoredotnet/extensions#8237\n\nCommit migrated from 42e9a7d712
2019-03-06 15:19:11 -08:00
Martin Costello b13ea4cd54 Use localhost for HttpListener (dotnet/extensions#1206)
Use localhost instead of 127.0.0.1 to fix dotnet/extensions#1205.\n\nCommit migrated from 99b4ddbdbc
2019-03-05 09:43:59 -08:00
Ryan Brandenburg 66773c57bc Use Arcade (dotnet/extensions#586)
Use arcade
\n\nCommit migrated from f0458995c6
2019-01-29 13:26:53 -08:00
Nate McMaster ee6763d146 Merge branch 'release/2.2'
\n\nCommit migrated from 604018cb12
2019-01-07 16:23:11 -08:00
Nate McMaster 16c7cbba45 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 6e758d41c1
2019-01-07 15:58:24 -08:00
Nate McMaster e7cca176e5 Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in f7d8e4e053
2018-11-06 17:12:46 -08:00
Nate McMaster fd100ade9e Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in 5381f42ded
2018-11-06 16:14:26 -08:00
Nate McMaster a8c8ddbb45 Reorganize source code in preparation to move into aspnet/Extensions
Prior to reorganization, this source code was found in 8270c54522
2018-11-06 14:13:18 -08:00
Nate McMaster 5c9701e0b6 Merge branch 'release/2.2'
\n\nCommit migrated from 34204b6bc4
2018-10-30 17:16:51 -07:00
Nate McMaster 45b0b83997 Merge branch 'release/2.1' into release/2.2
\n\nCommit migrated from 18fcffbd25
2018-10-30 16:39:06 -07:00