Commit Graph

13 Commits

Author SHA1 Message Date
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
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
Justin Kotalik ce392fa4f7 Cleanup to skip/flaky attributes (#2186) 2019-08-15 09:12:53 -07:00
Justin Kotalik f57e591af3 Add Repeat attribute (#1375) 2019-04-09 14:03:12 -07:00
Andrew Stanton-Nurse 262262569a add FlakyAttribute to mark flaky tests (#1222)
part of aspnet/AspNetCore#8237
2019-03-06 15:19:11 -08:00
Nate McMaster c43d3b823e 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
Nate McMaster fe1c8352b8 Merge branch 'release/2.2' 2019-01-07 16:23:11 -08:00
Nate McMaster 1311d28a51 Merge branch 'release/2.1' into release/2.2 2019-01-07 15:58:24 -08:00
John Luo b51be2c250 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 688914bb70 Capture LoggedTest.Initialize exception and re-trow in Dispose (#770) 2018-12-17 09:18:26 -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