Added terstadapter, few other smaller changes
This commit is contained in:
Родитель
db9bad76dc
Коммит
cbf6234e77
19
README.md
19
README.md
|
@ -2,11 +2,26 @@
|
|||
|
||||
The Test Demo is primarily intended to be opened in the IDE for the purpose of viewing the visual treatment of various elements. For that reason, there are failures, warnings and ignored tests as well as successful ones.
|
||||
|
||||
As a secondary purpose, the demos can be run in CI to ensure that the results under VSTest are as expected.
|
||||
As a secondary purpose, the demos can be run using command line VSTest, like in a CI, to ensure that the results under VSTest are as expected.
|
||||
|
||||
#### Usage
|
||||
|
||||
There are a set of solutions to be found under the folder 'solutions', diveded between 'VS2017' and 'VS2015'. There you find 'CSharpDemo' and 'NUnit3CoreTestDemo'. The first is .net framework 4.5, the latter is .net core 1.1.
|
||||
|
||||
##### Expected results
|
||||
|
||||
###### NUnit3CoreTestDemo
|
||||
After opening the solution (no build), 66 tesst should be discovered. This comes from the source based discovery process in VS and has nothing to do with the adapter.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#### Structure ####
|
||||
|
||||
Each demo is represented by a VS solution containing a single project. This allows a single demo to be opened in the IDE. The project and solution are in the same directory in order to make scripting simpler and all demos are organized at the top level by the version of Visual Studio used to create them.
|
||||
Each demo is represented by a VS solution containing a single project. This allows a single demo to be opened in the IDE.
|
||||
|
||||
The project and solution are in the same directory in order to make scripting simpler and all demos are organized at the top level by the version of Visual Studio used to create them.
|
||||
|
||||
Source code is common for all demos and is organized by the language supported.
|
||||
|
||||
|
|
|
@ -1,5 +1,7 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="packages\NUnit3TestAdapter.3.12.0\build\net35\NUnit3TestAdapter.props" Condition="Exists('packages\NUnit3TestAdapter.3.12.0\build\net35\NUnit3TestAdapter.props')" />
|
||||
<Import Project="packages\NUnit.3.11.0\build\NUnit.props" Condition="Exists('packages\NUnit.3.11.0\build\NUnit.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
|
@ -83,13 +85,13 @@
|
|||
<None Include="..\..\..\src\App.config">
|
||||
<Link>App.config</Link>
|
||||
</None>
|
||||
<None Include="packages.config" />
|
||||
<None Include="packages.config">
|
||||
<SubType>Designer</SubType>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="nunit.framework">
|
||||
<HintPath>packages\NUnit.3.9.0\lib\net45\nunit.framework.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
<Private>True</Private>
|
||||
<Reference Include="nunit.framework, Version=3.11.0.0, Culture=neutral, PublicKeyToken=2638cd05610744eb, processorArchitecture=MSIL">
|
||||
<HintPath>packages\NUnit.3.11.0\lib\net45\nunit.framework.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Configuration" />
|
||||
|
@ -99,6 +101,13 @@
|
|||
<PostBuildEvent>
|
||||
</PostBuildEvent>
|
||||
</PropertyGroup>
|
||||
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
|
||||
<PropertyGroup>
|
||||
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
|
||||
</PropertyGroup>
|
||||
<Error Condition="!Exists('packages\NUnit.3.11.0\build\NUnit.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\NUnit.3.11.0\build\NUnit.props'))" />
|
||||
<Error Condition="!Exists('packages\NUnit3TestAdapter.3.12.0\build\net35\NUnit3TestAdapter.props')" Text="$([System.String]::Format('$(ErrorText)', 'packages\NUnit3TestAdapter.3.12.0\build\net35\NUnit3TestAdapter.props'))" />
|
||||
</Target>
|
||||
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
|
||||
Other similar extension points exist, see Microsoft.Common.targets.
|
||||
<Target Name="BeforeBuild">
|
||||
|
|
|
@ -5,6 +5,11 @@ VisualStudioVersion = 15.0.27130.2003
|
|||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSharpTestDemo", "CSharpTestDemo.csproj", "{03C3F9EC-FB25-46C0-8F0D-17A0C6E60E9F}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{262E8424-2C0D-49ED-814B-D0F166793A0A}"
|
||||
ProjectSection(SolutionItems) = preProject
|
||||
Simple.runsettings = Simple.runsettings
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
|
|
@ -0,0 +1,50 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RunSettings>
|
||||
<RunConfiguration>
|
||||
<!-- 0 = As many processes as possible, limited by number of cores on machine, 1 = Sequential (1 process), 2-> Given number of processes up to limit by number of cores on machine-->
|
||||
<MaxCpuCount>0</MaxCpuCount>
|
||||
</RunConfiguration>
|
||||
|
||||
<!--
|
||||
<TestRunParameters>
|
||||
<Parameter name="webAppUrl" value="http://localhost" />
|
||||
<Parameter name="webAppUserName" value="Admin" />
|
||||
</TestRunParameters>
|
||||
-->
|
||||
|
||||
<!-- Adapter Specific sections -->
|
||||
|
||||
<!-- MSTest adapter -->
|
||||
<MSTest>
|
||||
<MapInconclusiveToFailed>True</MapInconclusiveToFailed>
|
||||
<CaptureTraceOutput>false</CaptureTraceOutput>
|
||||
<DeleteDeploymentDirectoryAfterTestRunIsComplete>False</DeleteDeploymentDirectoryAfterTestRunIsComplete>
|
||||
<DeploymentEnabled>False</DeploymentEnabled>
|
||||
<!-- Uncomment and update path for assembly resolution -->
|
||||
<!-- <AssemblyResolution>
|
||||
<Directory path="D:\myfolder\bin\" includeSubDirectories="false"/>
|
||||
</AssemblyResolution> -->
|
||||
</MSTest>
|
||||
|
||||
<!-- NUnit3 adapter, uncomment to set as appropriate, numeric, booleans, enums have their default values below, except RandomSeed -->
|
||||
<!--
|
||||
<NUnit>
|
||||
<BasePath>D:\Dev\NUnit\nunit3-vs-adapter\demo\NUnitTestDemo\bin\Release</BasePath>
|
||||
<PrivateBinPath>extras;more.extras</PrivateBinPath>
|
||||
<DefaultTimeout>0</DefaultTimeout>
|
||||
<WorkDirectory>work</WorkDirectory>
|
||||
<InternalTraceLevel>Off</InternalTraceLevel>
|
||||
<RandomSeed>1234567</RandomSeed>
|
||||
<NumberOfTestWorkers>-1</NumberOfTestWorkers>
|
||||
<Verbosity>0</Verbosity>
|
||||
<UseVsKeepEngineRunning>false</UseVsKeepEngineRunning>
|
||||
<ShadowCopyFiles>false</ShadowCopyFiles>
|
||||
<DefaultTestNamePattern>{m}{a}</DefaultTestNamePattern>
|
||||
</NUnit>
|
||||
-->
|
||||
<NUnit>
|
||||
<Verbosity>-1</Verbosity>
|
||||
</NUnit>
|
||||
|
||||
</RunSettings>
|
||||
|
|
@ -1,4 +1,5 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="NUnit" version="3.9.0" targetFramework="net45" />
|
||||
<package id="NUnit" version="3.11.0" targetFramework="net45" />
|
||||
<package id="NUnit3TestAdapter" version="3.12.0" targetFramework="net45" />
|
||||
</packages>
|
Загрузка…
Ссылка в новой задаче