chore: rename tooling project (#1447)
This commit is contained in:
Родитель
ed43faf3d0
Коммит
e5e349e5a4
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 @@ Don’t 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
|
Загрузка…
Ссылка в новой задаче