Commit Graph
24 Commits
Author SHA1 Message Date
Karthik Rajasekaran 5c93b350d3 Add NugetTargetMoniker to test projects and update remaining project references to pkgproj
Commit migrated from https://github.com/dotnet/corefx/commit/13e03705ced065850dc65900fccfd930426e87d7
2016-06-29 12:30:05 -07:00
Stephen Toub e22f4524b0 Move Dataflow ETW test into its own process
Fixes an issue where if another test accidentally overlaps (e.g. if the test doesn't ensure all queued async operations have completed), ETW events may fire in a way not expected by the tests.

This also eliminates the reason we had disabled parallelism for the suite, so I re-enabled it, which also results in the tests running several seconds faster.


Commit migrated from https://github.com/dotnet/corefx/commit/80072898844934493efbe879c034edf8dbb9caa5
2016-06-22 21:08:35 -04:00
Karthik Rajasekaran d73f6518c3 Update CoreFX tests to compile against a minimum of netstandard1.3 and add supports clauses for tests
CoreFX tests will now compile against netstandard1.3 as references and will now deploy for the platforms listed in their respective supports clause, provided the appropriate TestTFM is passed in.  The supports are fully listed inside runtime.json in the new TestSuite metapackage in buildtools. The tests will default to netcoreapp1.0 as their TestTFM.

CoreFx test projects now utilise a test csproj to pkgproj reference which determine the appropriate compile time and runtime assets needed.

Dependent on https://github.com/dotnet/buildtools/pull/770


Commit migrated from https://github.com/dotnet/corefx/commit/b4841454de7ddcd75e92e2bb24ebb238a82df43f
2016-06-15 11:23:11 -07:00
Eric Mellino 6565cdd3d4 Use NuGet references in System.Threading.Tasks.Dataflow
Additionally, clean up the cruft in the project files and remove some
unused using statements.


Commit migrated from https://github.com/dotnet/corefx/commit/70e4e0df4370803cb63b68fc9a6189c3f3c59f80
2016-02-24 18:29:16 -08:00
Alexander Köplinger b46f878f13 Remove outdated comment about packages.config from csproj's
Since the move to project.json we no longer use packages.config


Commit migrated from https://github.com/dotnet/corefx/commit/1d489b12d2f6b7b7128888d525dc2e49fe2f1782
2015-05-15 20:10:42 +02:00
Lakshmi Priya Sekar 2a499c5cbf Remove XunitTraitDiscoverers from corefx and reference the nuget package xunit.netcore.extensions.
Commit migrated from https://github.com/dotnet/corefx/commit/03e32211d668ee215f32c599849987cb7d9d4e2a
2015-05-07 16:15:32 -07:00
Eric StJohn 5db3ae33bf Convert all remaining package dependencies to project.json
DNX and BuildTools now support all of the nuget v2 conventions that we depend on so we can
move all remaining nuget v2 packages to the project.json file and eliminate packages.config.

This change also adds "frameworks" to the project.json so that dnu restore can calculate
applicable assets.  I am not yet using "runtimes" in the project.json since we are still resolving
our runtime assets manually (eg: build tools copies known files from packages).  A future
change will move us to using our runtime packages and add runtimes sections to projects
as appropriate.


Commit migrated from https://github.com/dotnet/corefx/commit/eb35a304c7e89e8b4335ed13c5d23706360d49a4
2015-05-05 12:36:57 -07:00
Lakshmi Priya Sekar aa951a667e Remove testcategories from csproj, in relation to the recent changes in buildtools.
Commit migrated from https://github.com/dotnet/corefx/commit/30b9b8d87605f17dbb94ccf7785da1fde8f11329
2015-04-21 16:36:05 -07:00
Eric StJohn c0e430ddf5 Update to latest CoreFx packages, convert to project.json
This change updates all projects to the latest CoreFx packages which make use of nuget v3 features and thus require project.json.  Packages.config remains for the packages which are not yet compatible with the new build task (mainly because we need to resolve to PCL folders).
The entire change was done by a tool in order to not miss any dependencies, and ensure we have project items for the packages.config/project.json.  One side effect of using the tool is some reformatting of whitespace in the projects.


Commit migrated from https://github.com/dotnet/corefx/commit/e729c5353070b71aedff8f1300ae838573813faf
2015-04-15 12:47:43 -07:00
Stephen Toub e4fe1e6b55 Add tests for System.Collections.* debugger attributes
Our collection types are some of the biggest users of DebuggerDisplayAttribute and DebuggerTypeProxyAttribute.  In the past as we've done refactorings, we've broken these on multiple occasions, and such breaks are often only discovered later on by someone using the types in the IDE.

This change adds some basic tests to exercise these debugger attributes, verifying their existence, that fields/properties they refer to exist, that properties on type proxies don't throw exceptions, etc.  We already had some debugger attribute tests in the System.Threading.Tasks.Dataflow library's tests; I've extracted those into some common helpers which I then use in the various test projects.

These helpers could be used in more test projects in the future.  They could also be expanded to cover more scenarios, as desired.


Commit migrated from https://github.com/dotnet/corefx/commit/f98612e1278908ad3998c90f982e8d1b4c44c320
2015-03-16 16:40:07 -04:00
Krzysztof Wicher b84c7a24c1 Add tests categories to projects
Commit migrated from https://github.com/dotnet/corefx/commit/9a4eda2952be4ad27111be79be769b1072c450c5
2015-03-06 10:56:33 -08:00
Stephen Toub 116b16bc0a Fix Dataflow ETW provider
Dataflow's ETW provider is broken due to not having the correct localized resource name; attempting to enable ETW tracing will cause the library to fail with resource-related exceptions.

This commit fixes that and adds some basic ETW tests to ensure that the EventSource is properly tracing events.


Commit migrated from https://github.com/dotnet/corefx/commit/d58775a1dcc1897ed5a21bcc58bf1aa4b8fd2bde
2015-02-22 08:27:18 -05:00
Stephen Toub 150a2f4e75 Re-enable code coverage for (most) disabled libraries
Several libraries had their code coverage disabled due to unknown problems.  The change to a more recent version of OpenCover appears to have addressed whatever those issues were, as the problems no longer repro.  This commit just re-enables the code coverage for those libraries.

The only remaining library with its code coverage disabled is System.Diagnostics.Process.dll.  It's either hanging or just taking a really long time to complete.  Investigation still needed.


Commit migrated from https://github.com/dotnet/corefx/commit/01c18f27d5a6c383701e0407b55e6edfae203309
2015-02-17 16:44:44 -05:00
chcosta d1620100c8 Sync changes from TFS as of 2015/02/16 9:30:00 AM
[tfs-changeset: 1416076]


Commit migrated from https://github.com/dotnet/corefx/commit/67bd740c6c732e141835521ff34b2cc18591a9cc
2015-02-16 09:51:49 -08:00
Maxwe11 2d635dae1c Replace relative path to common tests with a variable
Replace relative path "..\..\Common\tests" with $(CommonTestPath) variable.


Commit migrated from https://github.com/dotnet/corefx/commit/56dbc6abc6dcde5874c99c67f379d788c8dd4420
2015-02-08 15:05:37 +02:00
Matt Mitchell b2149f1c80 Enable code coverage for the corefx repo
This change enables code coverage for the corefx project using OpenCover.

 * When /p:Coverage=true is passed, we wrap the xunit call in the OpenCover command.
 * OpenCover filters test assemblies but no other default filters.
 * We disable parallel execution of tests within xunit and parallel project building when running coverage. This appears to cause issues with OpenCover (I see spurious failures in tests) and is actually slower than just running execution serially.
 * A few assemblies still have issues even after this.  These have coverage disabled with CoverageEnabledForProject.  Will open an issue for future investigation.
 * After execution is complete, we run the ReportGenerator tool over the set of generated coverage data, creating a full report in bin\tests\coverage.


Commit migrated from https://github.com/dotnet/corefx/commit/60a0bdd4125e39aa1653f2aeffc9eea02f348531
2015-02-05 13:11:18 -08:00
Stephen Toub 7a146318c5 Overhaul TPL Dataflow Tests
This overhauls the System.Threading.Tasks.Dataflow test suite, rewriting most of the tests while retaining pieces here and there that made sense.

A large portion of the tests were marked as OuterLoop because they involved long and flaky timeouts, were unreliable, etc. After the rewrite, the vast majority of tests are inner loop, ~260 [Fact]s instead of ~40 (the suite previously rolled a bunch of tests into a single [Fact], tracking their success in a local Boolean), with only a handful remaining as [OuterLoop]. I've not scrubbed through the ConcurrentTests.cs and HardeningTests.cs files, which are still all outer loop and should be reviewed and updated in the future.

With this change, product source code coverage via inner inner loop tests jumps from ~60% to ~90%, while also reducing LOC by several thousand lines in the tests. Further, on my machine the inner loop tests now currently run in ~3 seconds.


Commit migrated from https://github.com/dotnet/corefx/commit/f6515a70353b5584a48fb6a698b575163ff40279
2015-01-28 22:40:04 -05:00
Wes Haggard 27cb98e29a Switch all projects to resolve references from packages.config.
Commit migrated from https://github.com/dotnet/corefx/commit/08503d51d2c61861bf11c5e36da53c69aca092e1
2014-12-19 17:44:16 -08:00
Wes Haggard 9e1b10e6f4 Switch to importing dir.props/dir.targets using GetDirectoryNameOfFileAbove.
This commit also updates the new System.IO.Pipes.csproj to follow the pattern.


Commit migrated from https://github.com/dotnet/corefx/commit/5d7072c5caa5cd9aef476221613c78bcc60a003b
2014-12-17 21:01:52 -08:00
Wes Haggard ba98a882d4 Add dir.props/dir.targets to all the test projects and enable building them.
Added */tests/*.csproj file to dirs.proj list of projects to build.

There are some tests like the MetadataReaderTests that build against desktop
framework and so that project needed some hacking to get the correct props used,
we should fix that at another point.


Commit migrated from https://github.com/dotnet/corefx/commit/f5f9d189457df676f857c2e589a30795a6e1f8fa
2014-12-17 20:52:57 -08:00
Matt Cohn c0da27fb38 Convert TPL tests to a portable library compiled against contracts.
Commit migrated from https://github.com/dotnet/corefx/commit/b787c2f47d636510b59686de0e44ed138250996d
2014-12-17 10:46:43 -08:00
Krzysztof Wicher 2011f4685f Upgrade tests to use Xunit 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/9fe538d620b67aa0dd2ba5734ec9fa34379d79e9
2014-12-12 13:36:07 -08:00
Andrew Arnott c919cc8da4 Add Test Explorer VS package Service guid.
Every time the Dataflow solution opens (and Test Explorer is used) VS2013 adds this tag to the project. Just concede to the IDE and allow it to be added to the project and check into SCC so that the project doesn't get constantly dirtied by the IDE.

It appears this tag already is in all the other test projects. This recently added test project had not yet been 'tainted', so this takes care of that.


Commit migrated from https://github.com/dotnet/corefx/commit/3198574cf7c7e66a1950c667301ff4feb0884c36
2014-12-07 08:59:05 -08:00
dotnet-bot 365aa5a957 Initial Commit of System.Threading.Tasks.Dataflow
Commit migrated from https://github.com/dotnet/corefx/commit/ee19ffa874fef708794cb6f6612444f1dc66c5f9
2014-12-05 10:56:28 -08:00