integration-tests
Robert Dailey 9 months ago
parent 6a00888c85
commit 04ed33b11f

@ -35,6 +35,7 @@
<PackageVersion Include="TestableIO.System.IO.Abstractions" Version="21.0.2" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Extensions" Version="2.2.5" />
<PackageVersion Include="TestableIO.System.IO.Abstractions.Wrappers" Version="21.0.2" />
<PackageVersion Include="Testcontainers" Version="3.8.0" />
<PackageVersion Include="YamlDotNet" Version="15.1.6" />
</ItemGroup>
<!-- Unit Test Packages -->

@ -61,6 +61,9 @@ public abstract class IntegrationTestFixture2 : IDisposable
builder.RegisterInstance(Console).As<IAnsiConsole>();
builder.RegisterInstance(Logger).As<ILogger>();
// Platform related mocks
builder.RegisterMockFor<IRuntimeInformation>();
builder.RegisterMockFor<IGitRepository>();
builder.RegisterMockFor<IGitRepositoryFactory>();
builder.RegisterMockFor<IServiceInformation>(m =>

@ -3,4 +3,7 @@
<ProjectReference Include="..\..\src\Recyclarr.Cli\Recyclarr.Cli.csproj" />
<ProjectReference Include="..\Recyclarr.IntegrationTests\Recyclarr.IntegrationTests.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Testcontainers" />
</ItemGroup>
</Project>

@ -12,14 +12,8 @@ namespace Recyclarr.Cli.IntegrationTests.Tests;
[TestFixture]
public class PlatformIntegrationTest : IntegrationTestFixture2
{
protected override void RegisterStubsAndMocks(ContainerBuilder builder)
{
base.RegisterStubsAndMocks(builder);
builder.RegisterMockFor<IRuntimeInformation>();
}
[Test, AutoMockData]
public async Task Migrate_app_data_on_mac_os_dotnet8(CommandContext ctx)
public async Task Sync_successful(CommandContext ctx)
{
// The "old" app data directory has to be in place before we create SyncCommand, since we want the
// automatic/transparent move of that directory to happen before the migration system checks it.

Loading…
Cancel
Save