test(configmanager): expand unit test coverage to 451 tests
Add comprehensive tests for services (ConnectionTestService, RuntimeConfigValidation), ViewModels (PipelineEditor, dialogs, transformers), and Avalonia headless UI tests for views and forms.
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using Avalonia;
|
||||
using Avalonia.Headless;
|
||||
using JdeScoping.ConfigManager;
|
||||
|
||||
[assembly: AvaloniaTestApplication(typeof(JdeScoping.ConfigManager.Tests.TestAppBuilder))]
|
||||
|
||||
namespace JdeScoping.ConfigManager.Tests;
|
||||
|
||||
/// <summary>
|
||||
/// Provides a headless Avalonia application builder for UI tests.
|
||||
/// </summary>
|
||||
public class TestAppBuilder
|
||||
{
|
||||
/// <summary>
|
||||
/// Builds the Avalonia application configured for headless testing.
|
||||
/// </summary>
|
||||
/// <returns>An <see cref="AppBuilder"/> configured with headless platform options.</returns>
|
||||
public static AppBuilder BuildAvaloniaApp() =>
|
||||
AppBuilder.Configure<App>()
|
||||
.UseHeadless(new AvaloniaHeadlessPlatformOptions());
|
||||
}
|
||||
Reference in New Issue
Block a user