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
5 changes: 3 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@
<ItemGroup>
<PackageVersion Include="System.Memory" Version="4.6.3" />
<PackageVersion Include="System.Net.Http" Version="4.3.4"/>
<PackageVersion Include="aweXpect" Version="4.0.0"/>
<PackageVersion Include="aweXpect.Snapshots.PublicApi" Version="4.0.0"/>
<PackageVersion Include="aweXpect" Version="4.2.0"/>
<PackageVersion Include="aweXpect.Snapshots.DiffEngine" Version="4.2.0"/>
<PackageVersion Include="aweXpect.Snapshots.PublicApi" Version="4.2.0"/>
<PackageVersion Include="aweXpect.Chronology" Version="1.1.0"/>
<PackageVersion Include="aweXpect.Testably" Version="3.0.0"/>
<PackageVersion Include="aweXpect.Mockolate" Version="4.0.0-pre.4"/>
Expand Down
2 changes: 2 additions & 0 deletions Docs/agents/workflows.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ dotnet test --project Tests/Api/Testably.Abstractions.Api.Tests --no-build --tre
dotnet test --project Tests/Api/Testably.Abstractions.Core.Api.Tests --no-build --treenode-filter "/*/*/ApiApprovalTests/AcceptApiChanges"
```

Locally, a failing API test also opens a diff tool through `aweXpect.Snapshots.DiffEngine` (e.g. Rider, Visual Studio or VS Code) that compares the pending file with the snapshot, so the change can be taken over there. It never opens on a build server; set `DiffEngine_Disabled=true` to turn it off locally.

## Build pipeline

`build.ps1`/`build.sh`/`build.cmd` build and run `Pipeline/Build.csproj`, a [Fallout](https://www.nuget.org/packages/Fallout.Common) build (a NUKE fork). `./build.ps1 --help` lists the targets. Without a target it runs `ApiChecks` and `UnitTests`. The configuration defaults to Debug locally and Release on the server (`--configuration`).
Expand Down
6 changes: 3 additions & 3 deletions Tests/Api/Testably.Abstractions.Api.Tests/ApiApprovalTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace Testably.Abstractions.Api.Tests;
/// <summary>
/// Whenever a test fails, this means that the public API surface changed.
/// If the change was intentional, execute <see cref="AcceptApiChanges" />, rename the pending snapshot next to this
/// file or run the tests with the environment variable <c>AWEXPECT_ACCEPT_SNAPSHOTS</c> set to <c>all</c> to take
/// over the current public API surface. The changes will become part of the pull request and will be reviewed
/// accordingly.
/// file, take over the change in the diff tool that opens locally or run the tests with the environment variable
/// <c>AWEXPECT_ACCEPT_SNAPSHOTS</c> set to <c>all</c> to take over the current public API surface. The changes
/// will become part of the pull request and will be reviewed accordingly.
/// </summary>
public sealed class ApiApprovalTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="aweXpect.Snapshots.DiffEngine"/>
<PackageReference Include="aweXpect.Snapshots.PublicApi"/>
<PackageReference Remove="System.Net.Http" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ namespace Testably.Abstractions.Core.Api.Tests;
/// <summary>
/// Whenever a test fails, this means that the public API surface changed.
/// If the change was intentional, execute <see cref="AcceptApiChanges" />, rename the pending snapshot next to this
/// file or run the tests with the environment variable <c>AWEXPECT_ACCEPT_SNAPSHOTS</c> set to <c>all</c> to take
/// over the current public API surface. The changes will become part of the pull request and will be reviewed
/// accordingly.
/// file, take over the change in the diff tool that opens locally or run the tests with the environment variable
/// <c>AWEXPECT_ACCEPT_SNAPSHOTS</c> set to <c>all</c> to take over the current public API surface. The changes
/// will become part of the pull request and will be reviewed accordingly.
/// </summary>
public sealed class ApiApprovalTests
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="aweXpect.Snapshots.DiffEngine" />
<PackageReference Include="aweXpect.Snapshots.PublicApi" />
<PackageReference Remove="System.Net.Http" />
</ItemGroup>
Expand Down
Loading