-
Notifications
You must be signed in to change notification settings - Fork 690
More tests #2096
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
More tests #2096
Changes from all commits
e5871d8
ce482fd
85cf874
06fce47
62d1408
08ebf40
06817e2
5957632
09b2fa1
a275efe
0714038
7486d37
b125eb0
e4e37e6
1aedd24
da91f0e
f47c466
a54dba5
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -19,7 +19,7 @@ jobs: | |||||||
| id: create-comment | ||||||||
| with: | ||||||||
| content: | | ||||||||
| Thanks for your contribution! | ||||||||
| ### Thanks for your contribution! 🤗 (1 / 4) | ||||||||
|
|
||||||||
| The build and test process is starting. This may take a while. | ||||||||
| You can find more details below as the process continues or at the [actions tab](https://github.com/Live-Charts/LiveCharts2/actions/runs/${{ github.run_id }}). | ||||||||
|
|
@@ -100,16 +100,14 @@ jobs: | |||||||
| comment_id: ${{ needs.report-progress-starting.outputs.comment_id }} | ||||||||
| content: | | ||||||||
|
|
||||||||
| --- | ||||||||
|
|
||||||||
| All packages have been packed successfully! 📦✅ | ||||||||
| You can download the NuGet packages for this build [here](${{ steps.merge.outputs.artifact-url }}). | ||||||||
| ### Packing complete! 📦 (2 / 4) | ||||||||
|
|
||||||||
| You can download the NuGet packages for this build [here](${{ steps.merge.outputs.artifact-url }}). | ||||||||
| The packages will be available for 30 days, you can either [use them directly](https://stackoverflow.com/questions/43400069/add-a-package-with-a-local-package-file-in-dotnet), or wait for this PR to be merged to have them published to NuGet.org. | ||||||||
|
|
||||||||
| --- | ||||||||
| ### Running tests 🧪 (3 / 4) | ||||||||
|
|
||||||||
| Tests will start now, you can monitor their progress below or at the [actions tab](https://github.com/Live-Charts/LiveCharts2/actions/runs/${{ github.run_id }}). | ||||||||
| Tests are running now, you can monitor their progress below or at the [actions tab](https://github.com/Live-Charts/LiveCharts2/actions/runs/${{ github.run_id }}). | ||||||||
|
|
||||||||
| test-core: | ||||||||
| runs-on: windows-2025 | ||||||||
|
|
@@ -236,12 +234,12 @@ jobs: | |||||||
| fail-fast: false | ||||||||
| matrix: | ||||||||
| include: | ||||||||
| # not running, blazor issue? factos issue? tests issue? | ||||||||
| # ToDo: find why not running. | ||||||||
| # - id: blazor | ||||||||
| # workloads: wasm-tools | ||||||||
| - id: avalonia-browser | ||||||||
| workloads: wasm-tools | ||||||||
| # not running, uno issue? factos issue? tests issue? | ||||||||
| # ToDo: find why not running. | ||||||||
| # - id: uno | ||||||||
| # tf: net10.0-browserwasm | ||||||||
| # workloads: wasm-tools android | ||||||||
|
|
@@ -257,7 +255,7 @@ jobs: | |||||||
| use-factos: true | ||||||||
| test-id: ${{ matrix.id }} | ||||||||
| workloads: ${{ matrix.workloads }} | ||||||||
| # target-framework: ${{ matrix.tf }} | ||||||||
| target-framework: ${{ matrix.tf }} | ||||||||
| comment_id: ${{ needs.report-progress-starting.outputs.comment_id }} | ||||||||
|
|
||||||||
| test-android: | ||||||||
|
|
@@ -271,7 +269,7 @@ jobs: | |||||||
| - id: maui | ||||||||
| tf: net10.0-android | ||||||||
| workloads: maui-android | ||||||||
| # disabled for now, in this uno version, idk why on android no tests are detected. | ||||||||
| # ToDo: find why not running. | ||||||||
| # - id: uno | ||||||||
| # tf: net10.0-android | ||||||||
| # workloads: android | ||||||||
|
|
@@ -297,8 +295,8 @@ jobs: | |||||||
| fail-fast: false | ||||||||
| matrix: | ||||||||
| include: | ||||||||
| # - id: avalonia-ios | ||||||||
| # workloads: ios | ||||||||
| - id: avalonia-ios | ||||||||
|
||||||||
| - id: avalonia-ios | |
| - id: avalonia-ios | |
| tf: net10.0-ios |
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -32,6 +32,7 @@ | |||||||||
|
|
||||||||||
| <!-- turn UITesting to true to include UI tests in the sample projects --> | ||||||||||
| <UITesting>false</UITesting> | ||||||||||
| <NoWarnUITests>$(NoWarn);NETSDK1198;NU1701;XC0022;XA0141;XAAADB0000;CS0067;CS0414;CS0108;CS0618;CS4014;CS8600;CS8601;CS8602;CS8603;CS8612;CS8618;CS8622;CS8625;CS8629;CS9264;</NoWarnUITests> | ||||||||||
| <!-- Factos version https://github.com/beto-rodriguez/Factos --> | ||||||||||
| <FactosVersion>0.8.0</FactosVersion> | ||||||||||
|
|
||||||||||
|
|
@@ -42,14 +43,14 @@ | |||||||||
| </PropertyGroup> | ||||||||||
|
|
||||||||||
| <!-- | ||||||||||
| used to test the library on multiple render modes, | ||||||||||
| used to test the library on multiple render modes, this config overrides the the settings defined by the user. | ||||||||||
|
beto-rodriguez marked this conversation as resolved.
|
||||||||||
| used to test the library on multiple render modes, this config overrides the the settings defined by the user. | |
| used to test the library on multiple render modes, this config overrides the settings defined by the user. |
Copilot
AI
Feb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a typo in the comment: "the the" should be just "the".
| used to test the library on multiple render modes, this config overrides the the settings defined by the user. | |
| used to test the library on multiple render modes, this config overrides the settings defined by the user. |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -35,13 +35,23 @@ | |||||
| <Import Condition="$(UITesting) == 'true'" Project="..\..\build\UITestsLinks.Build.props" /> | ||||||
|
|
||||||
| <PropertyGroup Condition="$(UITesting) == 'true'"> | ||||||
| <NoWarn>$(NoWarnUITests)</NoWarn> | ||||||
| <DefineConstants>$(DefineConstants);UI_TESTING;XAML_UI_TESTING;WPF_UI_TESTING</DefineConstants> | ||||||
| </PropertyGroup> | ||||||
|
|
||||||
| <ItemGroup Condition="$(UITesting) == 'true'"> | ||||||
| <PackageReference Include="Factos.WPF" Version="$(FactosVersion)" /> | ||||||
| </ItemGroup> | ||||||
|
|
||||||
| <PropertyGroup Condition="$(TestBuildTargetFramework) == 'net10.0-windows'"> | ||||||
| <!-- | ||||||
| workaround, not sure why hardware accelerated views is failing on net10.0-windows10.0.19041.0 in CI environments | ||||||
| im not able top reproduce the issue locally, ill assume for now that it is a false positive and just exclude that | ||||||
|
||||||
| im not able top reproduce the issue locally, ill assume for now that it is a false positive and just exclude that | |
| I'm not able to reproduce the issue locally, I'll assume for now that it is a false positive and just exclude that |
Copilot
AI
Feb 13, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic in this conditional compilation symbol definition appears inverted. The comment says the hardware accelerated views are failing on net10.0-windows in CI, so tests should be excluded. However, the code defines TEST_HA_VIEWS (suggesting tests should be included) when the target framework is net10.0-windows. This appears to be backwards - if tests are failing, the symbol should NOT be defined, or the conditional checks should use a different symbol like SKIP_HA_VIEWS.
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -21,6 +21,8 @@ public async Task ShouldLoad() | |||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #if XAML_UI_TESTING | ||||||||||||||||||||||||||||||||||||||||||||
| // xaml platforms tests. | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| [AppTestMethod] | ||||||||||||||||||||||||||||||||||||||||||||
| public async Task ShouldLoadTemplatedChart() | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -73,4 +75,49 @@ public async Task ShouldUnloadAndReload() | |||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #if AVALONIA_UI_TESTING | ||||||||||||||||||||||||||||||||||||||||||||
| // based on: | ||||||||||||||||||||||||||||||||||||||||||||
| // https://github.com/Live-Charts/LiveCharts2/issues/1986 | ||||||||||||||||||||||||||||||||||||||||||||
| // ensure charts load when avalonia virtualization is on. | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| [AppTestMethod] | ||||||||||||||||||||||||||||||||||||||||||||
| public async Task TabControlScrollViewerRendersAfterTabSwitch() | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
| var sut = await App.NavigateTo<Samples.VisualTest.VirtualizationTest.View>(); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // open the second tab, scroll to end and ensure the chart is loaded. | ||||||||||||||||||||||||||||||||||||||||||||
| sut.OpenTab2(); | ||||||||||||||||||||||||||||||||||||||||||||
| await Task.Delay(1000); | ||||||||||||||||||||||||||||||||||||||||||||
| sut.ScrollToChart(); | ||||||||||||||||||||||||||||||||||||||||||||
| await Task.Delay(1000); | ||||||||||||||||||||||||||||||||||||||||||||
| Assert.ChartIsLoaded(sut.Chart2); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // now open the first tab, scroll to end and ensure the chart is loaded. | ||||||||||||||||||||||||||||||||||||||||||||
| sut.OpenTab1(); | ||||||||||||||||||||||||||||||||||||||||||||
| await Task.Delay(1000); | ||||||||||||||||||||||||||||||||||||||||||||
| sut.ScrollToChart(); | ||||||||||||||||||||||||||||||||||||||||||||
| await Task.Delay(1000); | ||||||||||||||||||||||||||||||||||||||||||||
| Assert.ChartIsLoaded(sut.Chart1); | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #if (WPF_UI_TESTING && TEST_HA_VIEWS) || MAUI_UI_TESTING || WINUI_UI_TESTING || (UNO_UI_TESTING && HAS_OS_LVC) | ||||||||||||||||||||||||||||||||||||||||||||
| // native platforms where gpu is supported | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| [AppTestMethod] | ||||||||||||||||||||||||||||||||||||||||||||
| public async Task ShouldLoadHardwareAcceleratedView() | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = true)); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| var sut = await App.NavigateTo<Samples.General.FirstChart.View>(); | ||||||||||||||||||||||||||||||||||||||||||||
| await sut.Chart.WaitUntilChartRenders(); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | ||||||||||||||||||||||||||||||||||||||||||||
| Assert.ChartIsLoaded(sut.Chart); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // restore default settings for other tests | ||||||||||||||||||||||||||||||||||||||||||||
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+113
to
+120
|
||||||||||||||||||||||||||||||||||||||||||||
| var sut = await App.NavigateTo<Samples.General.FirstChart.View>(); | |
| await sut.Chart.WaitUntilChartRenders(); | |
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | |
| Assert.ChartIsLoaded(sut.Chart); | |
| // restore default settings for other tests | |
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | |
| try | |
| { | |
| var sut = await App.NavigateTo<Samples.General.FirstChart.View>(); | |
| await sut.Chart.WaitUntilChartRenders(); | |
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | |
| Assert.ChartIsLoaded(sut.Chart); | |
| } | |
| finally | |
| { | |
| // restore default settings for other tests | |
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | |
| } |
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -55,4 +55,23 @@ public async Task ShouldUnloadAndReload() | |||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||
| } | ||||||||||||||||||||||||||||||||||||||||||||
| #endif | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| #if (WPF_UI_TESTING && TEST_HA_VIEWS) || MAUI_UI_TESTING || WINUI_UI_TESTING || (UNO_UI_TESTING && HAS_OS_LVC) | ||||||||||||||||||||||||||||||||||||||||||||
| // native platforms where gpu is supported | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| [AppTestMethod] | ||||||||||||||||||||||||||||||||||||||||||||
| public async Task ShouldLoadHardwareAcceleratedView() | ||||||||||||||||||||||||||||||||||||||||||||
| { | ||||||||||||||||||||||||||||||||||||||||||||
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = true)); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| var sut = await App.NavigateTo<Samples.Pies.Basic.View>(); | ||||||||||||||||||||||||||||||||||||||||||||
| await sut.Chart.WaitUntilChartRenders(); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | ||||||||||||||||||||||||||||||||||||||||||||
| Assert.ChartIsLoaded(sut.Chart); | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| // restore default settings for other tests | ||||||||||||||||||||||||||||||||||||||||||||
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+67
to
+74
|
||||||||||||||||||||||||||||||||||||||||||||
| var sut = await App.NavigateTo<Samples.Pies.Basic.View>(); | |
| await sut.Chart.WaitUntilChartRenders(); | |
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | |
| Assert.ChartIsLoaded(sut.Chart); | |
| // restore default settings for other tests | |
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | |
| try | |
| { | |
| var sut = await App.NavigateTo<Samples.Pies.Basic.View>(); | |
| await sut.Chart.WaitUntilChartRenders(); | |
| Assert.Contains("GPU", sut.Chart.CoreCanvas.RendererName); | |
| Assert.ChartIsLoaded(sut.Chart); | |
| } | |
| finally | |
| { | |
| // restore default settings for other tests | |
| LiveChartsCore.LiveCharts.Configure(config => config.HasRenderingSettings(builder => builder.UseGPU = false)); | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The target-framework parameter is now being passed for all test-browser matrix entries, but the avalonia-browser entry doesn't define a 'tf' value in its matrix configuration. This means target-framework will be passed as an empty string to the run-tests action. Verify that the run-tests action handles empty or undefined target-framework values correctly, or add a tf value to the avalonia-browser matrix entry if it needs one.