Skip to content

Commit

Permalink
Merge pull request #463 from BlueDotBrigade/Features/191-GherkinScena…
Browse files Browse the repository at this point in the history
…rios

Merge branch to `main` for: updating to .NET Core 9 & using the latest DatenLokator package
  • Loading branch information
Pressacco authored Nov 26, 2024
2 parents 60dcf40 + dcd8ff4 commit 8ad2f0b
Show file tree
Hide file tree
Showing 59 changed files with 231 additions and 277 deletions.
2 changes: 1 addition & 1 deletion Doc/Notes/Notes.csproj
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64</Platforms>
<RootNamespace>Notes</RootNamespace>
<Version>2.10.0</Version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Exe</OutputType>
<Platforms>x64</Platforms>
<AssemblyName>WeevilCli</AssemblyName>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64</Platforms>
<PackageId>BlueDotBrigade.Weevil.Common</PackageId>
<RootNamespace>BlueDotBrigade.Weevil</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64</Platforms>
<PackageId>BlueDotBrigade.Weevil.Core</PackageId>
<RootNamespace>BlueDotBrigade.Weevil</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<UseWPF>true</UseWPF>
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
<!-- If `AssemblyName` is set to any other value (e.g. WeevilGui.exe) you may experience -->
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64</Platforms>
<RootNamespace>BlueDotBrigade.Weevil.Plugins</RootNamespace>
<Version>2.11.0</Version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<RootNamespace>BlueDotBrigade.Weevil.PowerShell</RootNamespace>
<AssemblyName>BlueDotBrigade.Weevil.PowerShell</AssemblyName>
<OutputType>Library</OutputType>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<Platforms>x64</Platforms>
<PackageId>BlueDotBrigade.Weevil.TestingTools</PackageId>
<RootNamespace>BlueDotBrigade.Weevil.TestingTools</RootNamespace>
<RootNamespace>BlueDotBrigade.Weevil.TestTools</RootNamespace>
<Version>2.11.0</Version>
<Authors>BlueDotBrigade;</Authors>
<Copyright>© 2022 Blue Dot Brigade. All rights reserved.</Copyright>
<Owners>Blue Dot Brigade</Owners>
<Description>Includes types, interfaces, and utilities that are shared by all of the Weevil assemblies.</Description>
<ApplicationIcon></ApplicationIcon>
<AssemblyName>BlueDotBrigade.Weevil.TestingTools</AssemblyName>
<AssemblyName>BlueDotBrigade.Weevil.TestTools</AssemblyName>
<Company>Blue Dot Brigade</Company>
</PropertyGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlueDotBrigade.Weevil.TestingTools.Configuration.Reqnroll
namespace BlueDotBrigade.Weevil.TestTools.Configuration.Reqnroll
{
using System;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlueDotBrigade.Weevil.TestingTools.Data
namespace BlueDotBrigade.Weevil.TestTools.Data
{
using System;
using System.Collections.Generic;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BlueDotBrigade.Weevil.TestingTools.Text
namespace BlueDotBrigade.Weevil.TestTools.Text
{
public class RegexHelper
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,30 +1,27 @@
namespace BlueDotBrigade.Weevil
namespace BlueDotBrigade.Weevil.TestTools
{
/// <summary>
/// Represents commonly used parameters in Reqnroll <see href="https://docs.reqnroll.net/latest/automation/step-definitions.html">step definitions</see>.
/// </summary>
/// <seealso href="https://docs.reqnroll.net/latest/automation/step-definitions.html">Reqnroll: Step Definitions</seealso>
/// <seealso href="https://docs.reqnroll.net/latest/automation/cucumber-expressions.html">Reqnroll: Gherkin Expressions</seealso>
/// <seealso href="https://regex101.com">Regular Expressions</seealso>
internal sealed class X
public sealed class X
{
public const string FileName = @"""([a-zA-Z0-9]+\.[a-zA-Z0-9]{1,4})""";

public const string FilePath = @"((?:(?<Drv>[A-Za-z]:\\))(?<Dir>([a-zA-Z0-9._-]+\\)*)(?<File>[a-zA-Z0-9._-]+)\.(?<Ext>[a-zA-Z]{1,4}))";

//public const string TextExpression = @"(plain text|regular expression)"; <<< The Renroll Gherkin statement does not recognize this at compile time
public const string TextExpression ="(.*)";
public const string AnyText = @"(.*)";

public const string WholeNumber = @"(\d+)";

public const string AnyText = @"(.*)";
public const string FileName = @"""([a-zA-Z0-9]+\.[a-zA-Z0-9]{1,4})""";

public const string FilePath = @"((?:(?<Drv>[A-Za-z]:\\))(?<Dir>([a-zA-Z0-9._-]+\\)*)(?<File>[a-zA-Z0-9._-]+)\.(?<Ext>[a-zA-Z]{1,4}))";

public const string Integer = @"(\d+)";
public const string TimePeriod = @"((?:\d+) (?:min|sec))";

public const string OnOff = @"(on|off)";

public const string ShowSeverityOption = @"(Show Debug|Show Trace)";

public const string FilterMode = @"(Plain Text|Regular Expression)";
}
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<Platforms>x64</Platforms>
<PackageId>BlueDotBrigade.Weevil.Windows</PackageId>
<RootNamespace>BlueDotBrigade.Weevil.Windows</RootNamespace>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
using global::BlueDotBrigade.Weevil.Analysis;
using global::BlueDotBrigade.Weevil.Data;
using global::BlueDotBrigade.Weevil.IO;
using global::BlueDotBrigade.Weevil.TestingTools.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using NSubstitute;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using global::BlueDotBrigade.Weevil.Analysis;
using global::BlueDotBrigade.Weevil.Data;
using global::BlueDotBrigade.Weevil.Linq;
using global::BlueDotBrigade.Weevil.TestingTools.Data;

using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0-windows</TargetFramework>
<TargetFramework>net9.0-windows</TargetFramework>
<OutputType>Library</OutputType>
<RootNamespace>BlueDotBrigade.Weevil.Common</RootNamespace>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand All @@ -22,7 +22,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BlueDotBrigade.DatenLokator">
<Version>2.0.0</Version>
<Version>2.1.0</Version>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="MSTest.TestAdapter">
Expand All @@ -35,7 +35,7 @@
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.Common\BlueDotBrigade.Weevil.Common.csproj" />
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.TestingTools\BlueDotBrigade.Weevil.TestingTools.csproj" />
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.TestTools\BlueDotBrigade.Weevil.TestTools.csproj" />
</ItemGroup>
<ItemGroup>
<CodeAnalysisDictionary Include="..\..\DomainSpecificTerminology.xml">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
using System.Linq;
using BlueDotBrigade.Weevil.Data;
using BlueDotBrigade.Weevil.Navigation;
using BlueDotBrigade.Weevil.TestingTools.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
Expand Down
4 changes: 4 additions & 0 deletions Tst/BlueDotBrigade.Weevil.Common-UnitTests/GlobalUsings.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
global using Microsoft.VisualStudio.TestTools.UnitTesting;

global using BlueDotBrigade.DatenLokator.TestTools;
global using BlueDotBrigade.Weevil.TestTools.Data;
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
using System.Collections.Immutable;
using BlueDotBrigade.Weevil.Data;
using BlueDotBrigade.Weevil.Navigation;
using BlueDotBrigade.Weevil.TestingTools.Data;

using Microsoft.VisualStudio.TestTools.UnitTesting;

[TestClass]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
{
using System.Collections.Generic;
using System.IO;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BlueDotBrigade.DatenLokator.TestsTools;
using Weevil.Runtime.Serialization;

[TestClass]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
namespace BlueDotBrigade.Weevil.Common
{
using System;
using BlueDotBrigade.DatenLokator.TestsTools;
using BlueDotBrigade.Weevil.Data;
using Microsoft.VisualStudio.TestTools.UnitTesting;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
namespace BlueDotBrigade.Weevil.Common
{
using System;
using BlueDotBrigade.DatenLokator.TestsTools.Configuration;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using BlueDotBrigade.DatenLokator.TestTools.Configuration;

[TestClass]
public class TestEnvironment
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<OutputType>Library</OutputType>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
Expand All @@ -23,7 +23,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.14.0" />
<PackageReference Include="BlueDotBrigade.DatenLokator" Version="2.0.0" />
<PackageReference Include="BlueDotBrigade.DatenLokator" Version="2.1.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.12.0" />
<PackageReference Include="NSubstitute" Version="5.3.0" />
<PackageReference Include="Reqnroll.MsTest" Version="2.2.1" />
Expand All @@ -35,7 +35,7 @@
<ItemGroup>
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.Common\BlueDotBrigade.Weevil.Common.csproj" />
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.Core\BlueDotBrigade.Weevil.Core.csproj" />
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.TestingTools\BlueDotBrigade.Weevil.TestingTools.csproj" />
<ProjectReference Include="..\..\Src\BlueDotBrigade.Weevil.TestTools\BlueDotBrigade.Weevil.TestTools.csproj" />
</ItemGroup>
<ItemGroup>
<Content Include="..\..\DomainSpecificTerminology.xml">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace BlueDotBrigade.Weevil.Configuration.Reqnroll
{
using BlueDotBrigade.Weevil.TestingTools.Configuration.Reqnroll;
using BlueDotBrigade.Weevil.TestTools.Configuration.Reqnroll;

/// <summary>
/// Represents Reqnroll events that execute before & after every Gherkin scenario.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace BlueDotBrigade.Weevil.Configuration.Reqnroll
{
using BlueDotBrigade.DatenLokator.TestsTools.Configuration;
using BlueDotBrigade.DatenLokator.TestTools.Configuration;
using BlueDotBrigade.Weevil.Diagnostics;
using BlueDotBrigade.Weevil.TestingTools.Configuration.Reqnroll;
using BlueDotBrigade.Weevil.TestTools.Configuration.Reqnroll;

/// <summary>
/// Represents Reqnroll events that execute before & after every test run.
Expand Down
Loading

0 comments on commit 8ad2f0b

Please sign in to comment.