Commit Graph

31 Commits

Author SHA1 Message Date
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 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 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
Justin Kotalik 3875b0f292 Add retries to HttpClientSlim on macOS. (dotnet/extensions#1807)
\n\nCommit migrated from d4d110a838
2019-06-07 11:32:18 -07:00
John Luo 73e95c56c1 Allow flaky attribute on class and assembly (dotnet/extensions#1742)
* Allow flaky attribute on class and assembly\n\nCommit migrated from 23ba460e27
2019-05-29 16:22:17 -07:00
Nate McMaster cfc1320ee2 Add support for source-build (dotnet/extensions#1740)
\n\nCommit migrated from ad4067b012
2019-05-23 16:33:55 -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 76e0fc251c Add Repeat attribute (dotnet/extensions#1375)
\n\nCommit migrated from 13a00b0557
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
Nate McMaster bbca5f30e7 Remove implicit references for non-test projects (dotnet/extensions#1037)
\n\nCommit migrated from e504b4ee74
2019-01-31 13:20:34 -08:00
Nate McMaster 154ab28e45 Cleanup conversion to Arcade (dotnet/extensions#1014)
* Remove obsolete targets, properties, and scripts
* Replace IsProductComponent with IsShipping
* Undo bad merge to version.props
* Update documentation, and put workarounds into a common file
* Replace usages of RepositoryRoot with RepoRoot
* Remove API baselines
* Remove unnecessary restore feeds and split workarounds into two files
* Enable PR checks on all branches, and disable autocancel\n\nCommit migrated from f41cfded3c
2019-01-29 18:34:54 -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
James Newton-King 3287fba28f Don't timeout in testing task extensions when debugger is attached (dotnet/extensions#903)
\n\nCommit migrated from 24c84a5b1d
2019-01-07 15:37:53 +13:00
Nate McMaster fe4ed663a2 Merge branch 'release/2.2'
\n\nCommit migrated from c5307c9984
2018-11-15 11:01:39 -08:00
Nate McMaster 88003f2c21 Prepare repo to build 2.2.1
* Update dependencies to 2.2.0 rtm
* Update branding to 2.2.1
* Update package baselines to 2.2.0
* Add a restore source for 2.2.0 RTM
\n\nCommit migrated from 913f74d590
2018-11-14 08:44:28 -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