Without this change, files from this nuget package will be included
automatically when the consuming project is packing.
Example error when packing a project:
> C:\Program Files\dotnet\sdk\3.1.200\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5):
warning NU5100: The assembly 'content\Microsoft.VisualStudio.TestPlatform.MSTest.TestAdapter.dll' is
not inside the 'lib' folder and hence it won't be added as a reference
when the package is installed into a project. Move it into the 'lib'
folder if it needs to be referenced.
Additionally, add the contents to an ItemGroup so they can be seperated later if needed.
* arrange Assert.AreEqual expected and actual arguments.
* Assert.AreEqual(false, to Assert.IsFalse(
* Assert.AreEqual(true, to Assert.IsTrue(
* Assert.AreEqual(null, to Assert.IsNull(
* fixed some asserts that require Assert.AreEqual
* fixed some others
* Adding UT to catch issue where base class cleanup isn't called if not class cleanup on top level class
* Fix issue where base class cleanup isn't called when there is no top level class cleanup
* Add test to catch null ref ex when grandparent test class has class init/cleanup methods
* Fix null ref ex when grandparent test class has class init/cleanup methods
* Moving RecordStart/RecordEnd events into TestMethodInfo.Invoke method
* Fix null ref and assembly name
* Flow test id to test method invoke and flow test id back via results
* Handle start/end events across AppDomains
* Fixing comments
* Getting tests building
* Pass assembly location through
* Fire start/end events for error cases
* Adding a few UTs
* Addressing PR feedback
* Add back old start/end events
* Missed a file
* Cleanup
* Fixing UTs
Add DisplayName parameter to TestMethod to allow friendly test names
Add the ability to specify a display name to a test method which can
use arbitrary characters.
Example
```csharp
[TestMethod("Friendly Name 🏆🤩 - It's a brave new world - spaces are ok 🎉")]
public void TestMethod1()
{
}
```
* Correcting error message when dynamic data doen't have any data
* Configuring child domain's appbase to be test source location
* Nit
* Catch typeload exception if TestAssemblySettingsProvider doesn't exist
* PR comments
* Nit
* Fix build script to work with VS2019
The main change is to try to find msbuild using the 'Current' version
instead of the '15.0' version. The MSBuild team has stated that
'Current' will be used going forward to avoid a breaking change to the
path when the version revs.
Also necessary in this change was to drop the /toolsVersion flag from
msbuild. It was passing 15.0 but that tools version is not recognized in the
current MSBuild.
Lastly, added the UWP.Support component as a required build component.
When the build targets an instance of VS missing this feature, the build
will fail when trying to find Microsoft.Windows.UI.Xaml.CSharp.Targets.
* Handle when Resolve-Path throws if VS2019 is not present
* Implemented Initialize Inheritance for ClassInitialize attribute
* Implemented Cleanup inheritance behavior for ClassCleanup attr
* Removed OnceBeforeAnyDerivedClasses from ClassInitializeInheritance enum
* Changed UTF.TestClass for custom testclass attr to avoid test ouput warnings
* Updated RunClassCleanup to prevent running base cleanup without having run base init
* Fix name typo
* added doc for BaseClassInitializeMethodsDict prop
* Updates per review comments
* making inheritance behavior enum more generic and updating tests
* done some refactoring and added/fixed a few tests
* updates as per review comments
* updated classinfo and tests
* updated classcleanup 1-param ctor
* updating doc message for 1-param ctors
* add ResolveArguments to handle methods with optional arguments.
* update E2E unit test for new DataRow base/derived class tests
Signed-off-by: Steve Ashman <ssa3512@gmail.com>
* add some TestMethodInfo tests
Signed-off-by: Steve Ashman <ssa3512@gmail.com>
* split E2E datarow tests into multiple; add explanatory comments; add unit tests for TestMethodInfo.SetParameters; add support for methods with params arguments
* update datarowtests comments to reflect correct method names and counts being tested
* rename iterator variables to be more descriptive; remove duplicate derived class tests and rename tests to be more descriptive
* update datarow tests to only exist in DerivedClass so we aren't effectively running the same tests twice
* Added implementation for AddResultFile method from TestContext
* Added implementation for GetResultFiles method
* Added unittests for AddResultFile and GetResultFile implementation
* reverted old changes on ns1.0 implementation
* implementing 'AddResultFile' for netcore
* fixed build issue and adding test for netcore testcontext impl
* fix review comments
* updated licenseUrl for license in nuspec files
* updated build script to copy license file
* updated azure-pipelines.yml file to match the latest nuget version
* added tag on NetCore PlatformServices project to fix build issue
* fixing build issue
* Apply TestCategory from derived class on inherited test methods
Enables sharing test methods across a class hierarchy while categorizing
the inherited tests based on the derived class that's actually running
them.
* Preserve DeclaringClassFullName from discovery to execution
* Restore GetCustomAttributeForAssembly taking in a MemberInfo, but reference the member's Module instead of DeclaringType
* Filter out duplicate test methods
Selects the one declared closest to the test class among all valid test
methods with the same name.
* Fix compile after latest merge from master
* Bugfix for CancellationTokenSource
Added initialization that was missing in the NetCoreTestContext and added a test to cover the net core scenario as well.