Avalonia/tests/Avalonia.IntegrationTests.A...
Julien Lebosquain 1583de3e33
Fix random test failures and add empty dispatcher verification to tests (#17628)
* Add VerifyEmptyDispatcherAfterTestAttribute

* Use VerifyEmptyDispatcherAfterTest and fix failing tests

* Remove unsupported timeout from sync xUnit tests
2024-11-30 04:25:31 -08:00
..
Properties Rename integration tests now they're not win32-only. 2021-11-14 00:52:26 +01:00
AppiumDriverEx.cs [Windows] WindowDecorations related integration tests (#15561) 2024-06-27 23:41:49 -04:00
AutomationTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
Avalonia.IntegrationTests.Appium.csproj Make integrational tests compatible with Appium 2 (#15570) 2024-04-30 19:42:58 -04:00
ButtonTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
CheckBoxTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
CollectionDefinitions.cs [Windows] WindowDecorations related integration tests (#15561) 2024-06-27 23:41:49 -04:00
ComboBoxTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
ContextMenuTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
DefaultAppFixture.cs TrayIcon integration tests (#16154) 2024-07-08 19:44:15 -04:00
ElementExtensions.cs Integration tests: add retries to OpenWindowWithClick (#17259) 2024-10-22 09:33:34 +00:00
EmbeddingTests.cs Make popup focus stealing configurable. (#16642) 2024-09-30 14:49:19 +00:00
GestureTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
ListBoxTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
MenuTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
NativeMenuTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
OverlayPopupsAppFixture.cs TrayIcon integration tests (#16154) 2024-07-08 19:44:15 -04:00
PlatformFactAttribute.cs Make EnumExtensions internal. 2023-05-18 15:39:18 +02:00
PlatformTheoryAttribute.cs Make EnumExtensions internal. 2023-05-18 15:39:18 +02:00
PointerTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
RadioButtonTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
ScreenTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
ScrollBarTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
SliderTests.cs Considering scaling when centering windows (#16158) 2024-10-10 15:07:24 +00:00
TestBase.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
TrayIconTests.cs Refactor integration test app paging (#16551) 2024-08-03 08:56:12 +00:00
WindowDecorationsTests.cs Win32 - Fix Window Frame Size and Position issues. (#16608) 2024-08-16 17:31:15 +00:00
WindowTests.cs Fix random test failures and add empty dispatcher verification to tests (#17628) 2024-11-30 04:25:31 -08:00
WindowTests_MacOS.cs Considering scaling when centering windows (#16158) 2024-10-10 15:07:24 +00:00
macos-clean-build-test.sh Add .NET 8 target (Avalonia 11.1) (#14535) 2024-03-05 13:37:26 -08:00
readme.md Update Appium tests readme.md (#16134) 2024-06-26 14:44:51 +08:00
record-video.runsettings Record video for failing win32 integration tests on CI. (#16546) 2024-08-03 14:40:01 -07:00
xunit.runner.json Rename integration tests now they're not win32-only. 2021-11-14 00:52:26 +01:00

readme.md

Running Integration Tests

Windows

Prerequisites

Running

  • Run WinAppDriver (it gets installed to the start menu)
  • Run the tests in this project

macOS

Prerequisites

  • Install Appium: https://appium.io/
  • Give Xcode helper the required permissions
  • cd samples/IntegrationTestApp then ./bundle.sh to create an app bundle for IntegrationTestApp
  • Register the app bundle by running open -n ./bin/Debug/net8.0/osx-arm64/publish/IntegrationTestApp.app

Running

  • Run appium
  • Run the tests in this project

Each time you make a change to Avalonia or IntegrationTestApp, re-run the bundle.sh script (registration only needs to be done once).

Appium 2

Tests in this project are configured to run with Appium 1 (as only this version supports WinAppDriver). If you need to run with Appium 2 on macOS, extra steps are required:

  • Install Appium 2 with mac2 driver
  • Set <IsRunningAppium2>true</IsRunningAppium2> msbuild property on the test project or globally
  • Run appium 2 with appium --base-path=/wd/hub (custom base path is required)
  • Run tests as normally