Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions src/Playwright.MSTest.v4/Playwright.MSTest.v4.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<Title>Microsoft.Playwright.MSTest.v4</Title>
<PackageId>Microsoft.Playwright.MSTest.v4</PackageId>
<Summary>A set of helpers and fixtures to enable using Playwright in MSTest 4 tests.</Summary>
<Description>
Playwright enables reliable end-to-end testing for modern web apps. This package brings in additional helpers
and fixtures to enable using it within MSTest.
</Description>
<PackageIcon>icon.png</PackageIcon>
<TargetFramework>netstandard2.0</TargetFramework>
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<RunWithWarnings>true</RunWithWarnings>
<RootNamespace>Microsoft.Playwright.MSTest</RootNamespace>
<ReleaseVersion>0.0.0</ReleaseVersion>
<BuildFromSource>True</BuildFromSource>
<AssemblyName>Microsoft.Playwright.MSTest.v4</AssemblyName>
<PackageOutputPath>./nupkg</PackageOutputPath>
<IsPackable>true</IsPackable>
<Nullable>enable</Nullable>
<!--<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>1.52.0</PackageValidationBaselineVersion>-->
</PropertyGroup>

<Import Project="../Common/Version.props" />
<Import Project="../Common/SignAssembly.props" />
<Import Project="../Common/SignFiles.props" />
<ItemGroup>
<ProjectReference Include="..\Playwright\Playwright.csproj" />
<ProjectReference Include="..\Playwright.TestAdapter\Playwright.TestAdapter.csproj" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.VisualStudioEng.MicroBuild.Core" Version="1.0.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="MSTest.TestFramework" Version="4.0.0-preview.25372.6" />
</ItemGroup>
<ItemGroup>
<None Include="..\Common\icon.png" Pack="true" Visible="false" PackagePath="icon.png" />
</ItemGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)..\Playwright.MSTest\*.cs">
<Link>%(RecursiveDir)%(FileName)%(Extension)</Link>
</Compile>
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@
<PackageReference Include="MSTest.TestAdapter" Version="2.2.10" Condition="'$(TEST_MODE)' == 'mstest'" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.10" Condition="'$(TEST_MODE)' == 'mstest'" />

<!-- MSTest v4 -->
<ProjectReference Include="..\Playwright.MSTest.v4\Playwright.MSTest.v4.csproj" Condition="'$(TEST_MODE)' == 'mstest.v4'" />
<PackageReference Include="MSTest.TestAdapter" Version="4.0.0-preview.25372.6" Condition="'$(TEST_MODE)' == 'mstest.v4'" />
<PackageReference Include="MSTest.TestFramework" Version="4.0.0-preview.25372.6" Condition="'$(TEST_MODE)' == 'mstest.v4'" />

<!-- NUnit -->
<ProjectReference Include="..\Playwright.NUnit\Playwright.NUnit.csproj" Condition="'$(TEST_MODE)' == 'nunit'" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" Condition="'$(TEST_MODE)' == 'nunit'" />
Expand Down
2 changes: 1 addition & 1 deletion src/Playwright.TestingHarnessTest/tests/baseTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ type RunResult = {

export const test = base.extend<{
proxyServer: ProxyServer;
testMode: 'nunit' | 'mstest' | 'xunit' | 'xunit.v3';
testMode: 'nunit' | 'mstest' | 'mstest.v4' | 'xunit' | 'xunit.v3';
runTest: (files: Record<string, string>, command: string, env?: NodeJS.ProcessEnv) => Promise<RunResult>;
launchServer: (options: { port: number }) => Promise<void>;
server: SimpleServer;
Expand Down
Loading
Loading