This commit is contained in:
Darío Kondratiuk 2021-05-27 16:02:47 -03:00 коммит произвёл GitHub
Родитель ed43faf3d0
Коммит e5e349e5a4
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
30 изменённых файлов: 35 добавлений и 41 удалений

Просмотреть файл

@ -31,7 +31,7 @@ stages:
- task: DotNetCoreCLI@2
inputs:
command: 'run'
arguments: '-p $(Build.SourcesDirectory)/src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath $(Build.SourcesDirectory)'
arguments: '-p $(Build.SourcesDirectory)/src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath $(Build.SourcesDirectory)'
- task: DotNetCoreCLI@2
inputs:

2
.github/workflows/nuget-package-tests.yml поставляемый
Просмотреть файл

@ -36,7 +36,7 @@ jobs:
path: ./src/Playwright/runtimes/
key: ${{ hashFiles('./src/Common/PackageInfo.props') }}
- name: Download Drivers
run: dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .
run: dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .
- name: Build Project
run: dotnet build ./src/Playwright/Playwright.csproj -c Debug
- name: Delete browsers on Mac

2
.github/workflows/nuget.yml поставляемый
Просмотреть файл

@ -16,7 +16,7 @@ jobs:
with:
dotnet-version: 5.0.100
- name: Download Drivers
run: dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .
run: dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .
- name: Publish Playwright Sharp
id: publish_nuget_playwright_sharp
uses: rohith/publish-nuget@v2

4
.github/workflows/tests.yml поставляемый
Просмотреть файл

@ -50,7 +50,7 @@ jobs:
- name: Clean
run: dotnet clean ./src/Playwright.sln --configuration Debug && dotnet nuget locals all --clear
- name: Download Drivers
run: dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .
run: dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .
- name: Run tests (!Linux)
if: ${{ matrix.os != 'ubuntu-latest' }}
env:
@ -111,7 +111,7 @@ jobs:
- name: Clean
run: dotnet clean ./src/Playwright.sln --configuration Debug && dotnet nuget locals all --clear
- name: Download Drivers
run: dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .
run: dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .
- name: Run tests (!Linux)
if: ${{ matrix.os != 'ubuntu-latest' }}
env:

Просмотреть файл

@ -61,7 +61,7 @@ Dont worry about commit messages or about how many commits your PR has. [Your
Before building the solution for the first time, you will need to download the drivers by running the following command in your terminal:
```
dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .
dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .
```
## Writing Tests

Просмотреть файл

@ -23,7 +23,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playwright", "Playwright\Pl
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Tools", "Tools", "{5C6D57B1-C82A-48D6-9EBD-73B712CAE476}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "PlaywrightSharp.Tooling", "tools\PlaywrightSharp.Tooling\PlaywrightSharp.Tooling.csproj", "{61C89FA2-645D-4D0E-9A20-06ABE32054CF}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playwright.Tooling", "tools\Playwright.Tooling\Playwright.Tooling.csproj", "{61C89FA2-645D-4D0E-9A20-06ABE32054CF}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Playwright.Testing.Xunit", "Playwright.Testing.Xunit\Playwright.Testing.Xunit.csproj", "{FEFC3D43-748A-4825-836F-462C9B9F7D78}"
EndProject

Просмотреть файл

@ -80,7 +80,7 @@
</PackageReference>
</ItemGroup>
<Target Name="EnsurePrerequisitsRan" BeforeTargets="InstallBrowsers">
<Error Text="Playwright prerequisites are missing. Ensure you've ran `dotnet run -p ./src/tools/PlaywrightSharp.Tooling/PlaywrightSharp.Tooling.csproj -- download-drivers --basepath .`" Condition="!Exists('$(MSBuildProjectDirectory)\Drivers\unix$(NativeFolder)')" />
<Error Text="Playwright prerequisites are missing. Ensure you've ran `dotnet run -p ./src/tools/Playwright.Tooling/Playwright.Tooling.csproj -- download-drivers --basepath .`" Condition="!Exists('$(MSBuildProjectDirectory)\Drivers\unix$(NativeFolder)')" />
</Target>
<PropertyGroup Condition="'$(TF_BUILD)' == 'true'">
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>

Просмотреть файл

@ -9,12 +9,12 @@ using System.Text.Json;
using System.Text.Json.Serialization;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using PlaywrightSharp.Tooling.Extensions;
using PlaywrightSharp.Tooling.Models.Api;
using PlaywrightSharp.Tooling.Models.Mismatch;
using PlaywrightSharp.Tooling.Options;
using Playwright.Tooling.Extensions;
using Playwright.Tooling.Models.Api;
using Playwright.Tooling.Models.Mismatch;
using Playwright.Tooling.Options;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
internal class ApiChecker
{

Просмотреть файл

@ -10,9 +10,9 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Xml;
using DriverDownloader.Linux;
using PlaywrightSharp.Tooling.Options;
using Playwright.Tooling.Options;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
internal class DriverDownloader
{

Просмотреть файл

@ -1,6 +1,6 @@
using System.Net;
namespace PlaywrightSharp.Tooling.Extensions
namespace Playwright.Tooling.Extensions
{
internal static class StringExtensions
{

Просмотреть файл

@ -29,7 +29,7 @@ using System.Linq;
using System.Reflection;
using Microsoft.Playwright.Testing.Xunit;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
/// <summary>
/// This will identify missing tests from upstream.

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
public class PlaywrightArgument
{

Просмотреть файл

@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
internal class PlaywrightEntity
{

Просмотреть файл

@ -1,6 +1,6 @@
using System;
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
public class PlaywrightLangs
{

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
public class PlaywrightMember
{

Просмотреть файл

@ -1,6 +1,6 @@
using System.Runtime.Serialization;
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
public enum PlaywrightMemberKind
{

Просмотреть файл

@ -1,6 +1,6 @@
using System;
namespace PlaywrightSharp.Tooling.Models.Api
namespace Playwright.Tooling.Models.Api
{
public class PlaywrightType
{

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Mismatch
namespace Playwright.Tooling.Models.Mismatch
{
internal class Mismatch
{

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Mismatch
namespace Playwright.Tooling.Models.Mismatch
{
internal class MismatchArgument
{

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Mismatch
namespace Playwright.Tooling.Models.Mismatch
{
internal class MismatchEntity
{

Просмотреть файл

@ -1,4 +1,4 @@
namespace PlaywrightSharp.Tooling.Models.Mismatch
namespace Playwright.Tooling.Models.Mismatch
{
internal class MismatchMember
{

Просмотреть файл

@ -1,6 +1,6 @@
using CommandLine;
namespace PlaywrightSharp.Tooling.Options
namespace Playwright.Tooling.Options
{
[Verb("check-api")]
internal class ApiCheckerOptions

Просмотреть файл

@ -1,6 +1,6 @@
using CommandLine;
namespace PlaywrightSharp.Tooling.Options
namespace Playwright.Tooling.Options
{
[Verb("download-drivers")]
internal class DownloadDriversOptions

Просмотреть файл

@ -24,7 +24,7 @@
using CommandLine;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
/// <summary>
/// Describes the options for scaffolding the tests.

Просмотреть файл

@ -24,7 +24,7 @@
using CommandLine;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
/// <summary>
/// Describes the options for scaffolding the tests.

Просмотреть файл

@ -17,12 +17,6 @@
<PackageReference Include="Microsoft.Extensions.Primitives" Version="5.0.0" />
</ItemGroup>
<ItemGroup>
<Folder Include="Extensions\" />
<Folder Include="Linux\" />
<Folder Include="Models\" />
<Folder Include="Options\" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Playwright.Testing.Xunit\Playwright.Testing.Xunit.csproj" />
<ProjectReference Include="..\..\Playwright.Testing.Xunit\Playwright.Testing.Xunit.csproj" />
</ItemGroup>
</Project>

Просмотреть файл

@ -26,9 +26,9 @@ using System;
using System.IO;
using System.Threading.Tasks;
using CommandLine;
using PlaywrightSharp.Tooling.Options;
using Playwright.Tooling.Options;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
internal static class Program
{

Просмотреть файл

@ -32,7 +32,7 @@ using System.Text.RegularExpressions;
using System.Threading.Tasks;
using CommandLine;
namespace PlaywrightSharp.Tooling
namespace Playwright.Tooling
{
[SuppressMessage("StyleCop.CSharp.ReadabilityRules", "SA1118:ParameterMustNotSpanMultipleLines", Justification = "CodeDom is complicated.")]
internal static partial class ScaffoldTest