Commit Graph

30 Commits

Author SHA1 Message Date
John Luo 0d8bfb9676 Remove Serilog dependency in extensions (#3040)
* Remove Serilog dependency in extensions

* Add xunit logging for shutdown tests

* Need to remove dependency on AspNetCore.Testing and remove DumpCollector
2020-03-06 14:59:15 -08:00
Sam Harwell 567ebd4e4e Switch file headers to the MIT license 2020-02-26 11:05:13 -08:00
Sam Harwell ea15690a47 Normalize all file headers to the expected Apache 2.0 license 2020-02-26 11:05:12 -08:00
Doug Bunting eabf15bfe9 Merge branch 'master' into merge/release/3.1-to-master 2020-02-20 21:43:31 -08:00
William Godbe 609cdbe94e Revert "Revert "Remove ref project from Microsoft.AspNetCore.Testing (#2817)" (#2882)" (#2936)
This reverts commit 1286a6ff55e300352dabeb6d778c9fcdd258bd08.
2020-02-13 15:49:45 -08:00
John Luo 0c559a2fa2 Merge branch 'release/3.1' 2020-01-22 19:28:42 -08:00
William Godbe 220bfec9d6 Revert "Remove ref project from Microsoft.AspNetCore.Testing (#2817)" (#2882)
This reverts commit b624d6ba91b9c292ff9a2aa786a575b0eaa31b4b.
2020-01-17 19:24:54 -08:00
Ryan Nowak d8b7f79568 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 2020-01-16 12:10:17 -08:00
John Luo e78f5966c7 Remove ref project from Microsoft.AspNetCore.Testing (#2817) 2020-01-15 16:36:56 -08:00
John Luo 6840731ab3 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
Ryan Nowak 0e7ff1e6ec 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
John Luo 31b0a53a9f Support netcoreapp3.1 TFM (#2336)
* Support netcoreapp3.1 TFM

* Unpin SDK for source build

* Update to preview1 branding
2019-09-12 22:34:52 -07:00
Justin Kotalik 9898a0eb71 Cleanup to skip/flaky attributes (#2186) 2019-08-15 09:12:53 -07:00
Nate McMaster 92ead8b790 Disable transitive project references in test projects (#1834) 2019-06-13 16:27:19 -07:00
Nate McMaster 56fe4e0f03 Add support for source-build (#1740) 2019-05-23 16:33:55 -07:00
Justin Kotalik 1bc41e0961 Add Repeat attribute (#1375) 2019-04-09 14:03:12 -07:00
Andrew Stanton-Nurse 52be71db2b add FlakyAttribute to mark flaky tests (#1222)
part of aspnet/AspNetCore#8237
2019-03-06 15:19:11 -08:00
Pavel Krymets e9fd9d7ab3 Add xml docs to targeting pack (#1149) 2019-02-22 12:35:31 -08:00
Nate McMaster fca5c9cee8 Remove implicit references for non-test projects (#1037) 2019-01-31 13:20:34 -08:00
Nate McMaster 6d452e9b05 Cleanup conversion to Arcade (#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
2019-01-29 18:34:54 -08:00
Ryan Brandenburg c4c2df54eb Use Arcade (#586)
Use arcade
2019-01-29 13:26:53 -08:00
Nate McMaster c24730c51e Merge branch 'release/2.2' 2019-01-07 16:23:11 -08:00
Nate McMaster c94d063eb8 Merge branch 'release/2.1' into release/2.2 2019-01-07 15:58:24 -08:00
Nate McMaster 88865365b3 Remove netcoreapp2.0 test TFMs (#907)
.NET Core 2.0 reached EOL last year. This removes multi-targeting our test projects and test assets to only use .NET Core 2.1 and .NET Framework 4.6.1.
2019-01-07 15:52:44 -08:00
John Luo 2283bd63f5 Add attribute to allow LoggedTest to collect dump on failure (#905)
* Add attribute for collecting dumps for failed LoggedTest
2019-01-07 13:42:22 -05:00
Pavel Krymets 22097c6c35 Capture LoggedTest.Initialize exception and re-trow in Dispose (#770) 2018-12-17 09:18:26 -08:00
Pavel Krymets 7d2b7a5fb8 Remove internal types from Logging and Abstractions (#513) 2018-11-16 08:33:57 -08:00
Nate McMaster fc4e64de38 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 08375cd15c 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 018907bec0 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