unoplatform/uno

Layout unit tests should be migrated to runtime tests

Open

#15,703 创建于 2024年2月29日

在 GitHub 查看
 (1 评论) (1 反应) (1 负责人)C# (837 fork)batch import
area/tests 🧪difficulty/starter 🚀good first issuekind/bugproject/layout 🧱

仓库指标

Star
 (9,789 star)
PR 合并指标
 (平均合并 14天 8小时) (30 天内合并 130 个 PR)

描述

Current behavior

Using unit tests for layout-related stuff isn't a good idea for the following reasons:

  1. They are run against a "mock" layouting implementation, which can be very different from the actual implementation. So, results can be very deceiving.
  2. For some scenarios, we could be having different behavior on different platforms. We definitely want to catch those so that we are aware of them. Having the test to verify the actual behavior on all supported platforms is a lot better.

Expected behavior

Migrate to runtime tests

How to reproduce it (as minimally and precisely as possible)

No response

Workaround

No response

Works on UWP/WinUI

None

Environment

No response

NuGet package version(s)

No response

Affected platforms

No response

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

贡献者指南